Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricky Yuanqi Li authored Jun 9, 2017
1 parent 0910b8f commit 7d74178
Showing 1 changed file with 7 additions and 30 deletions.
37 changes: 7 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,44 +4,21 @@

## Server

The server runs correctly on CSIL machine. Other platform is not guaranteed.
Copy the code onto a CSIL machine, and runs the server like this. **(Note the
working directory.)**
To run server:

```sh
g01-draft/program/out/ $ java -cp ../lib/mysql-connector-java-5.1.41-bin.jar:. ServerMain [port=23334]
ant server
```

Or you can run this on your local machine.

The default port is 23334, you can use other port as you wish.

## Game

To start the game, runs it like this, where the first argument is host name, the
second argument is port number. If you run it on you local machine, the host
name is "localhost". **(Note the working directory.)**
To run game:

```sh
g01-draft/program/ $ java -jar out/Arcade-Haven.jar [host="localhost"] [port=23334]
ant game
```

You can also run the game calling `make default-game`, which runs game using
the default arguments.

You are allowed to register a new user in the start screen. Or you can use
the following user. Here are some test users.

- timcook 123456
- amazon 123456

## Known issues

It has several issues to be fixed in the next two weeks.
You can use these existing users, or you can register some new users.

- Collision detection doesn't work properly. Sometimes when Pacman hits a ghost,
it doesn't die.
- Sometimes the dialog box cannot handle incoming messages properly, it will
displays a wrong message.
- Sequence number of messages are not synchronized correctly, this is a issue
caused by Java's GUI library, which makes multi-threading buggy.
- timcook, 123456
- iphone, 123456

0 comments on commit 7d74178

Please sign in to comment.