ttrts/README.md

53 lines
1.8 KiB
Markdown
Raw Normal View History

2014-12-16 13:12:53 +00:00
# TTRTS
*The Tiny Terminal RTS where the players write their AIs*
2014-12-16 13:12:53 +00:00
------------------------------------------------------------------------------------
## Introduction
We aim to create a simple terminal based rts where a user can program an AI to control their army
2014-12-16 13:12:53 +00:00
------------------------------------------------------------------------------------
## Gameplay
1. TTRTS clients are run from the command line
2. clients will connect and confirm initial board state
1. clients output a text file with game data for this turn
2. a player, or program, reads the game data file and outputs an instructions file
3. clients read the instructions file, simulates the turn
4. game state is verified between clients and output
5. repeat until an end state is reached
3. once game is finished, host and clients disconnect and a winner is notified
2014-12-16 13:12:53 +00:00
*see [the game directory](game) for full game rules*
2014-12-16 13:12:53 +00:00
------------------------------------------------------------------------------------
## Source
### Targets
##### ttrts
Main TTRTS executable , runs from the command line and can act as host or client
##### ttrts-test
Test executable, to be compiled and run to test various functionality
2014-12-16 13:12:53 +00:00
##### player
Custom player AI code, this should contain examples and test code to help newcomers begin their journey
2014-12-16 13:12:53 +00:00
### Libraries
##### game
Implementation of the RTS rules and simulation. [game](game) has full information on it's implementation.
##### net
Net code for hosting the server and communicating with clients
2014-12-16 13:12:53 +00:00
##### ui
Wrapper for user interface for the terminal, this only really needs three stages
* Initialise the game with settings and connect the clients
* Run the game simulation to it's conclusion
* Display the game result
* Acsii Colour wrapper for separate teams
2014-12-16 13:12:53 +00:00
##### maths
simple maths library for 2D calculations and types