Monday, 17 March 2014

Linked List(s)

Okay, so I'm thinking about the Linked List Thing, and the 5.01 lesson shows an example using a separate class. I suppose that means that I can use the Java Linked List Class.

So each tile has to contain the following information: 
  • Style 
    • Bamboo (1-9)  suit = 0. number = valueOfThing
    • Stones (1-9)  suit = 1. number = valueOfThing
    • Numbers (1-9)  suit = 2. number = valueOfThing
    • Directions  suit = 3.  
      • North number = 0;
      • East number = 1
      • South number = 2
      • West number = 3
    • Other   suit = 4. 
      • Prosperity number = 0
      • Red Centre number = 1
      • White blank number = 2
There will also have to be 2 dice values that show up on the screen (will definitely be on a gooey). 

So each of the hand(s) is a separate array list, and the tile(s) that you pick from is also one. 

I'm also going to need the following buttons: 
  • Pong (take it to get a triple)
  • Sheung  (take it to get a consecutive number)
  • Gong (take it to get 4 in a row)
  • Sik Woo (win!) 



No comments:

Post a Comment