W01fw00d / barbarians

A little web-browser turn-based strategy game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Refactor the code

W01fw00d opened this issue · comments

There are a lot of algorithms to improve, functions to modularize and code to refactor. We could use some ES6 cool features too.

Browser/Board (dom table manipulator) would be only accesed by Map (my storage of units in map and game logic related)

Use webcomponents for Board, DetailsPanel, ControlsBar, Layout

Si desacoplo bien el juego, podria conectarse para la parte grafica a phaser o incluso Unity!

Game should be so independent of the browser, than it should be able to be print in a console (map in every turn, and rest of UI)

This would be useful for testing of all-board related functionality (creation of barbarians everyturn, adjusting the rates...)

It could be useful for simulation, so IA could run possible next turns