Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Terminal- and text-based two-player fighting game.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.rvmrc
LICENSE
README.md
battle.rb
fighter.rb
server.rb
textfight_client.sh
textfight_server.rb
world.rb

README.md

What is textfight?

textfight is a simple, text-based client/server application that allows fighters to join and wander around the small world. These fighters can walk around, and, when they land on the same square, do battle!

Using textfight

Start the server

ruby textfight_server.rb This starts the server listening for connections from fighters.

Debug

Add in a -d flag to the command above to start the server in debug mode.

Starting the client

./textfight_client.sh This connects to the server, expected to be localhost

Join a non-localhost server

To connect to another server besides localhost, you can modify textfight_client.sh or simply telnet servername 3939

Something went wrong with that request. Please try again.