The Tiny Terminal RTS with programmable AI
Find a file
2014-12-16 13:13:01 +00:00
game remove unit inheritence, twas a silly idea, and remove usage of shared ptr and unique ptr not needed anymore 2014-12-16 13:13:01 +00:00
maths Framework for movement and action orders, plus some better organisation of the test code 2014-12-16 13:13:00 +00:00
net Add readme and directories for other libraries 2014-12-16 13:12:52 +00:00
player Add readme and directories for other libraries 2014-12-16 13:12:52 +00:00
test remove unit inheritence, twas a silly idea, and remove usage of shared ptr and unique ptr not needed anymore 2014-12-16 13:13:01 +00:00
ttrts Initial commit with ttrts base main.cpp 2014-12-16 13:12:48 +00:00
ui Rename basetypes to mathtypes 2014-12-16 13:12:59 +00:00
.gitignore Add gitignore with build forlder ignored 2014-12-16 13:12:51 +00:00
CMakeLists.txt Move the board code out to ui as it's only for board visualisation 2014-12-16 13:12:58 +00:00
README.md Update README.md with info on ttrts-server 2014-12-16 13:13:00 +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 the game directory 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
  • Acsii Colour wrapper for separate teams
maths

simple maths library for 2D calculations and types