Presentation is loading. Please wait.

Presentation is loading. Please wait.

Texas Forty-Two By: Nate Normandin CS 470. What is Texas Forty-Two? A Domino Game A way for people to learn the game A way for people to play others A.

Similar presentations


Presentation on theme: "Texas Forty-Two By: Nate Normandin CS 470. What is Texas Forty-Two? A Domino Game A way for people to learn the game A way for people to play others A."— Presentation transcript:

1 Texas Forty-Two By: Nate Normandin CS 470

2 What is Texas Forty-Two? A Domino Game A way for people to learn the game A way for people to play others A Java Applet that connects to a server where people play the Domino Game Texas Forty-Two

3 Why Create Texas Forty-Two? Currently only two other online Forty-Two systems exist The current systems are Windows based and can only be played on Windows 98 or higher Lisa Cherry of Mexia, Texas would like a portable way to play online. So people can play online from any Java enabled web browser.

4 How Does Texas Forty-Two Work? Communication –Connect via TCP Sockets –Sending Messages Size: 4096 bytes String with a delimiter LENGTHTYPEDELIMITERMESSAGE

5 How Does Texas Forty-Two Work? Server –Constantly running –Connected to the Internet –Listening for users on specified port –Controls all the creation of tables, game play, and chat.

6 Texas Forty-Two Server

7 How Does Texas Forty-Two Work? Client –Accessed through a Java enabled computer connected to the internet –Load the web page with the Java applet –Log In Usernames and Passwords are stored in a table on the Server Machine

8 How Does Texas Forty-Two Work? Client (continued… ) –The client receives the game state from the server including the Tables currently open and clients currently connected –Lobby User can create and join tables User can chat with other online users

9 Texas Forty-Two Lobby Login

10 How Does Texas Forty-Two Work? Client (continued…) –Table Upon clicking the “Create Table” button, a dialog box with table options opens Playing rules are chosen through the table option dialog Players may join the table until it is full (4 players total) All players are viewed in their respective position

11 Texas Forty-Two Table

12 How Does Texas Forty-Two Work? Client (continued…) –Table Game Play –Players across from each other are on the same team –Dealer chosen –Dominos are shuffled ( Collections class in Java ) –Dominos are dealt to everyone (each person receives 7) –Players bid –High bidder chooses rule

13 How Does Texas Forty-Two Work? Client (continued…) –Table Game Play –Trick play –When all dominos are gone, play is over –Count points –If bidder made bid, team receives a mark –If bidder did not make bid, the other team receives a mark –Played to 7 marks

14 How Does Texas Forty-Two Work? Client –Table Features –Double clicking a domino plays the domino –If the domino double clicked is not allowed, an error Dialog Box pops up –Chat with other users at the table –Dialog Boxes used for bidding and selecting the rule –Played dominos displayed in center of the table screen –Each team’s score displayed at the left of the Table window

15 Minimum Requirements Server –Minimum Java 1.4.2 installed –Windows XP –1.0 GHz CPU with 64 MB RAM Client –Minimum Java 1.4.2 installed –400 MHz CPU with 32 MB RAM

16 Conclusion What did I learn? –Threading –Networking When is this program available? –Beta version ready by Demo Day (April 26, 2004) Questions?


Download ppt "Texas Forty-Two By: Nate Normandin CS 470. What is Texas Forty-Two? A Domino Game A way for people to learn the game A way for people to play others A."

Similar presentations


Ads by Google