Commit graph

74 commits

Author SHA1 Message Date
mdiluzio
4f595ff92e Fix #8 by defining the version properly and adding a proper line end 2014-12-20 17:27:25 +00:00
mdiluzio
98deae237b Update the README.md files with newer and more useful information
fixes #4
2014-12-20 16:57:01 +00:00
mdiluzio
f6f6d6fafd Add an END specifiers to gamestate and order files
Game will now wait until the last line of an order file matches "END"
AI's MUST now finalise their order file with "END"

fixes #1
2014-12-20 16:33:42 +00:00
mdiluzio
fec9c8dad7 Add MAJOR.MINOR.PATCH versioning to the binary.
This also modified the output format for the gamestatefile so AI's will have to be updated
2014-12-20 16:17:01 +00:00
mdiluzio
b37fe327f2 Re-do generation now that attack rule has changed 2014-12-20 15:35:19 +00:00
mdiluzio
29048fcdd3 Reorder team colours to match with bash colour codes 2014-12-20 15:35:18 +00:00
mdiluzio
fa7aa15ccd Fix some bugs
Fix a case where game folder existed in verious forms
Fix bug where game would not correctly end at draw state
Fix bug where the team order file was looked for in the wrong directory
Extract gamestate function and properly handle game ending scenarios
Stop hitting yourselves

Fixed bug where units would not move forward because they were hitting themselves
2014-12-20 15:35:18 +00:00
mdiluzio
f4109e7b36 Adjust some output 2014-12-20 15:35:17 +00:00
mdiluzio
71d0084908 Use a pre-build script to generate usage.h from the README.md
Use a generated header from README.md
Finalise git ignore file
2014-12-20 15:35:16 +00:00
Marc Di Luzio
a7bc45497a Update README.md 2014-12-18 14:03:01 +00:00
Marc Di Luzio
30cbdff1f5 Update CMakeLists.txt 2014-12-18 14:02:12 +00:00
Marc Di Luzio
c1bd6eb368 Update CMakeLists.txt 2014-12-18 14:02:05 +00:00
Marc Di Luzio
fed4c4a054 Update test.cpp 2014-12-18 14:01:54 +00:00
Marc Di Luzio
37f95607b0 Update CMakeLists.txt 2014-12-18 14:01:03 +00:00
Marc Di Luzio
5a56a400c5 Even more cleanup and removal of legacy code 2014-12-18 13:58:21 +00:00
Marc Di Luzio
157e6285eb Move USAGE.txt out to the ttrts target and convert to header appropriately 2014-12-18 13:43:12 +00:00
Marc Di Luzio
3fc1f5ee5d Change unit Attack behaviour to a charge
All charges on a turn are evaluated at the same time, step by step
2014-12-17 13:38:06 +00:00
mdiluzio
e8610c8131 Remove player source directory in favor of new higher level players directory with a simple (and not-fully-functioning) perl AI 2014-12-17 07:51:49 +00:00
mdiluzio
526451ad02 Update with more pre-generated levels
Also clean up test code to not output unless erroring
2014-12-16 22:35:56 +00:00
Marc Di Luzio
dbfd932a64 Update usage and gitignore to not exlude code folders 2014-12-16 13:33:11 +00:00
Marc Di Luzio
24e17450aa Change the games folder to maps and add it to the gitignore, updating the USAGE text to reflect this 2014-12-16 13:13:04 +00:00
Marc Di Luzio
2a410d98c0 Set up a basic ttrts binary
It takes a game description from the command line.
Looks in a folder 'ttrts_gamename' for turn commands
Reads those in and simulates until a winner is found
2014-12-16 13:13:03 +00:00
Marc Di Luzio
a90ad9f90c Remove player IDs, keep it simple stupid 2014-12-16 13:13:03 +00:00
Marc Di Luzio
d0d3834449 Move source code into source subfolder 2014-12-16 13:13:02 +00:00