The Tiny Terminal RTS with programmable AI
Find a file
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
players Some more code for parsing units 2014-12-17 08:49:27 +00:00
source Change unit Attack behaviour to a charge 2014-12-17 13:38:06 +00:00
.gitignore Update usage and gitignore to not exlude code folders 2014-12-16 13:33:11 +00:00
bootstrap.sh Make the build folder if needed 2014-12-16 22:35:58 +00:00
README.md 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
USAGE.txt Update usage and gitignore to not exlude code folders 2014-12-16 13:33:11 +00:00

TTRTS

The Tiny Terminal RTS where the players write their AIs


Introduction

We aim to create a simple terminal based rts where a user can program an AI to control their army


Gameplay

  1. ttrts clients are run from the command line
  2. ttrts-server is launched from the command line
  3. clients will connect to server and confirm initial board state
  4. clients output a text file with game data for this turn
  5. a player, or program, reads the game data file and outputs an instructions file
  6. clients read the instructions file, simulates the turn
  7. game state is verified between clients and server
  8. repeat until an end state is reached
  9. once game is finished, host and clients disconnect and a winner is notified

see game for full game rules


Source

Targets

ttrts

Main TTRTS executable , runs from the command line and acts as client

ttrts-server

TTRTS server executable, runs from the command line acting as server

player

Custom player AI code, this should contain examples and test code to help newcomers begin their journey

ttrts-test

Test executable, to be compiled and run to test various functionality

Libraries

game

Implementation of the RTS rules and simulation. game has full information on it's implementation.

net

Net code for hosting the server and communicating with clients

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
  • ASCII Colour wrapper for separate teams
maths

simple maths library for 2D calculations and types