mdiluzio
ec7ed601a3
Players moved to external repository
...
Can be found at https://github.com/mdiluz/ttrts-players
2014-12-20 15:56:08 +00:00
mdiluzio
469e3ffa8a
Add a Random player, simply does random commands on each turn
...
Remove simplePlayer in favor of new randomPlayer, which uses new ttrts.pm module
2014-12-20 15:35:19 +00:00
mdiluzio
4edca83659
Add a Random player, simply does random commands on each turn
...
Remove simplePlayer in favor of new randomPlayer, which uses new ttrts.pm module
2014-12-20 15:35:19 +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
e08b8190bb
Update README.md
2014-12-18 13:59:19 +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
4b37246e53
Some more code for parsing units
2014-12-17 08:49:27 +00:00
mdiluzio
489ca88218
Some addded functionality to simplePlayer
2014-12-17 08:36:49 +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
6c1647b1be
Make the build folder if needed
2014-12-16 22:35:58 +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
7cf33ba458
Remove the prebuilt games directory, these should be generated with bootstrap.sh
2014-12-16 13:13:03 +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
e001396744
Add bootstrap script to generate build files, binaries, run tests and generate maps
2014-12-16 13:13:03 +00:00
Marc Di Luzio
572bc39ecf
Add basic 5v5 game file
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
Marc Di Luzio
870f459f75
New ttrts-gen target to generate game files
2014-12-16 13:13:02 +00:00
Marc Di Luzio
a75e6e290d
Finalise implementation of reading in a game from a string
2014-12-16 13:13:02 +00:00
Marc Di Luzio
002c1e5927
Add new game string outputer and use it.
...
modify some of the other outputters to look better
2014-12-16 13:13:02 +00:00
Marc Di Luzio
24ac058475
Update the game readme
2014-12-16 13:13:02 +00:00
Marc Di Luzio
714fd2894d
Rename orders -> order
2014-12-16 13:13:02 +00:00
Marc Di Luzio
8a486fdd40
Use snprintf and sscanf instead of std::string tomfoolery
...
Rename order_c to command_c for better readability
2014-12-16 13:13:02 +00:00
Marc Di Luzio
b77411121a
Implement conversion of Unit to String and back
2014-12-16 13:13:02 +00:00
Marc Di Luzio
7a75fbd369
Clean up CXX Flags and remove statements relating to us being cool. If you have to say it, it ain't true
2014-12-16 13:13:02 +00:00
Marc Di Luzio
43a2c58c56
Ignore IDEA files as well
2014-12-16 13:13:02 +00:00
Marc Di Luzio
7a88b5eb83
Remove straggling sublime project
2014-12-16 13:13:02 +00:00
Marc Di Luzio
4c439a383e
More cleanup and remove of unneeded functions
2014-12-16 13:13:02 +00:00
Marc Di Luzio
005896b13c
Add comments and clean up game.cpp
2014-12-16 13:13:02 +00:00
Marc Di Luzio
99cd93ae22
Turn on all warnings, except reorder, and fix remaining warnings
2014-12-16 13:13:02 +00:00
Marc Di Luzio
50ed84c1bd
Comment all the tests
2014-12-16 13:13:02 +00:00
Marc Di Luzio
7e2fd0a8d1
Fix a few more bugs and implement more tests
...
Bug in infinite recursion on move assignment operator.
Bug in adding the wron units ID to the kill list.
2014-12-16 13:13:02 +00:00
Marc Di Luzio
9b00030039
More tests
2014-12-16 13:13:01 +00:00
Marc Di Luzio
aee703b107
Finialise the full game step
...
Had to rework a ton of code from bad design.
NOTE: FRIENDLY FIRE IS ON >:D
2014-12-16 13:13:01 +00:00
Marc Di Luzio
6fc41914f7
ignore user files
2014-12-16 13:13:01 +00:00
Marc Di Luzio
3c4a90d068
Simplify some things, zomg c++11 for loops are beautiful
2014-12-16 13:13:01 +00:00
Marc Di Luzio
e310acfaf8
More skeleton code for simulating a turn
...
Use enum classes for safe enums
2014-12-16 13:13:01 +00:00