Skip to content

gracecuenca/tha_swami

Repository files navigation

Mini Arcade

Presented by team tha_swami: Jack Cruse, Grace Cuenca, and Naotaka Kinoshita (period 10 Systems)

The Project

Our mini arcade consists of three features:

  1. Wack-a-Mole
  2. Scrolling Text
  3. Memory Matrix

1. Wack-a-Mole

In our implementation of Wack-a-mole, all clients connected to the server will serve as "holes" that the "mole" can appear in. Each client should have one terminal screen open. The terminal's background color will changed based on whether a mole is present.

  • The terminal will be red if there is no mole
  • The terminal will be blue is there is a mole When the user hits the enter key on a client that has a mole, the mole will move to another client.

2. Scrolling Text

In our implementation of scrolling text, all clients connected to a server will receive a message that scrolls from one client to the other, in the order that they connected to the server. The message can be anything from a 'hi' to a more complex image created by characters.

3. Memory Matrix

In our implementation of memory matrix, all clients connected to the server will have a designated color that the terminal will change to. Upon beginning the game, the server will randomly select a client to 'flash', indicating that it has to be hit according to the prompt given in the client window. The game progressively gets harder as more and more clients are randomly selected, as the user has to hit enter on the clients in the order that they were flashed. Users must type y and then enter on the window they want to hit as the correct one, and type n and enter on the other three windows before proceeding to the next correct window.

Running the Arcade

First, clone the repo

$ git clone https://github.com/gracecuenca/tha_swami.git

CD into the repo

$ cd tha_swami

To compile all the files needed to run every game, first run

$ make

Since the server for each game was created separately, you must run specific servers for specific games.

Important: If running the client and server files on localhost (127.0.0.1), there is no need to specify an IP. Otherwise, be sure to include the IP that the server file is running on when running the client file.

To run wack-a-mole

Server:

$ ./color_server

Client(s): Max number of clients: 5

$ ./color_client [ip]

To run scrolling text

Server:

$ ./scroll_server

Client(s): Max number of clients: 2

$ ./scroll_client [ip]

To run memory matrix

Server:

$ ./memory_server

Client(s): Must be exactly 4 clients

$ ./memory_client [ip]

About

systems final proj!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published