Update usage and gitignore to not exlude code folders

This commit is contained in:
Marc Di Luzio 2014-12-16 13:33:11 +00:00
parent 24e17450aa
commit dbfd932a64
3 changed files with 81 additions and 78 deletions

View file

@ -8,22 +8,24 @@ SYNOPSYS
ttrts [OPTIONS...] MAPFILE
DESCRIPTION
ttrts is a tiny terminal based RTS where that uses text files as order lists to control it's units.
ttrts is a tiny terminal based RTS where that uses text
files as order lists to control it's units.
This means that any user, program or cat that can read and write to text files can play the game.
This means that any user, program or cat that can read
and write to text files can play the game.
USAGE
When invoked, ttrts will set up a full game and output a single file representing the current gamestate into a local directory called ttrts_{GAME_NAME}.
When invoked, ttrts will set up a full game and output a
single file representing the current gamestate into a
local directory called ttrts_{GAME_NAME}.
This file can be read in and interpretted by human, robot, or cat.
ttrts will wait for orders files to be placed in it's current working directory.
This file can be read in and interpretted by human, robot
or cat. ttrts will wait for orders files to be placed in
it's current working directory.
File name formats:
gamestate Turn_{TURN_NUMBER}.txt
orders Turn_{TURN_NUMBER}_Team_{TEAM_NUMBER}.txt
Once orders have been set for each player taking part, ttrts consumes order files,
calculates new game state and outputs a new file.
Once orders have been set for each player taking part
ttrts will calculate the new game state and output a new
gamestate file for the next turn.
This process repeats until a winner is chosen!
@ -33,21 +35,21 @@ OPTIONS
GAMESTATE FILE FORMAT
Name
Turn_{TURN_NUMBER}.txt
Turn_{TURN_NUMBER}.txt
Contents
===== {GAME_NAME} =====
SIZE:[{X},{Y}]
TURN:{TURN_NUMBER}
~~~~
UNIT:{UNIT_ID} tm:{TEAM_NUMBER} vs:{VISUAL} dr:{DIRECTION(NESW)} ps:[{X},{Y}]
...
===== {GAME_NAME} =====
SIZE:[{X},{Y}]
TURN:{TURN_NUMBER}
~~~~
UNIT:{ID} tm:{TEAM} vs:{VIS} dr:{DIR(NESW)} ps:[{X},{Y}]
...
ORDER FILE FORMAT
Name
Turn_{TURN_NUMBER}_Team_{TEAM_NUMBER}.txt
Turn_{TURN_NUMBER}_Team_{TEAM_NUMBER}.txt
Contents
ORDER:{ORDER_CHAR} id:{UNIT_ID}
...
ORDER:{ORDER_CHAR} id:{UNIT_ID}
...
ORDERS
F - Move unit forward one space