... | ... | @@ -5,7 +5,7 @@ computer crashes… |
|
|
In this fachpraktikum you will learn about socket programming and text
|
|
|
based protocols. You will implement a bot that plays games of shootout.
|
|
|
|
|
|
Edit
|
|
|
## Shootout
|
|
|
|
|
|
Shootout is a very simple kids game in which you try to shoot your
|
|
|
opponent. In each round of the game, each player chooses one of three
|
... | ... | @@ -27,7 +27,7 @@ before revealing the moves to both players. Also, the server keeps track |
|
|
of each player’s performance (see
|
|
|
[scoring](http://virt34.ethz.ch:8000/index.html)).
|
|
|
|
|
|
Edit
|
|
|
## Exercises
|
|
|
|
|
|
1. Connect to the server using `telnet [url] [port]`. When connected,
|
|
|
authenticate yourself with the token given to you by the assistant
|
... | ... | @@ -69,7 +69,7 @@ Edit |
|
|
games against several other teams in parallel. Each game is
|
|
|
identified by a unique game ID (cf. Server commands below).
|
|
|
|
|
|
Edit
|
|
|
## Commands
|
|
|
|
|
|
Basic (Exercises 1-4):
|
|
|
|
... | ... | @@ -111,7 +111,7 @@ From Server: |
|
|
- `Error <GameId> <Error Text>`: If something goes wrong, you get an
|
|
|
Error message with a little description.
|
|
|
|
|
|
Edit
|
|
|
## Mount your home directory
|
|
|
|
|
|
You can use the following commands to connect to your home directory:
|
|
|
|
... | ... | |