GetDotted Domains

Viewing Thread:
"JAVA"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Tue 16/10/01 at 23:54
Regular
Posts: 787
Is there anyone out there who is a dab hand at JAVA. Not stuff for web applets or javascrip but plain java programming. I have a task to do at uni and was looking for some pointers to make sure Im heading in the right direction.

Anyone??
Fri 19/10/01 at 20:10
Regular
"Picking a winner!"
Posts: 8,502
Cheers, I tried to put it into my own words but it didn't work to well. : )
Fri 19/10/01 at 13:36
Regular
""
Posts: 303
Copied straight from the uni handout eh? Could at least have put into your own words!!

Anyway, dunno really without sitting down and thinking about it...

I suppose you'll need a domino pool class, made up of many instances of a domino class. With a remove from pool method, how many left in pool method etc.

A display class with a print method etc to view the new row of dominos.

Perhaps a person class, with various methods. Whos turn method, cant go method, skip turn method etc.

I'll put my thinking hat on and get back to you. Nice little exercise in OO, that is. Like it.
Thu 18/10/01 at 23:48
Regular
"Picking a winner!"
Posts: 8,502
pop to the top, so if anyone can give some pointers
Wed 17/10/01 at 15:47
Regular
"Picking a winner!"
Posts: 8,502
Right I have to design a really basic game of dominoes.

Here is a bit of the problem:
There are 28 possibilities of dominoes (numbers on heach range from 0-6.
The game is played as follows:

The dominoes are placed face down, shuffled, and each of the two players takes 7 dominoes. One of the players starts and puts down a domino (it doesn't need to
be a double). The opposing player then has to put down a domino next to this so that the number of spots on the ends of the dominoes matches. Play continues in
this fashion, with alternating players adding matching dominoes to either end of the growing line of dominoes. If a player cannot go (i.e. does not have a matching
domino) then they must 'chap' - miss their go, and play moves to the other player. If neither player can go then the winner is the player with the fewest domino spots
in total (a 'count'). The winner is the first player to use up all their dominoes, or in the event of a 'count', the player with fewer spots.

After each turn, your program should display the line of dominoes, the dominoes held by the user, and an indication of how many dominoes the computer still has.
During the game you should not show the dominoes held by the computer - only an indication of how many it has left. At the end of the game you can reveal the
computer's dominoes.



Just wandering what you think is the best way to go about it, ie how many classes I should use. Thanks if you can help.
Wed 17/10/01 at 10:18
Regular
""
Posts: 303
Yup, what do you need?
Tue 16/10/01 at 23:54
Regular
"Picking a winner!"
Posts: 8,502
Is there anyone out there who is a dab hand at JAVA. Not stuff for web applets or javascrip but plain java programming. I have a task to do at uni and was looking for some pointers to make sure Im heading in the right direction.

Anyone??

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Impressive control panel
I have to say that I'm impressed with the features available having logged on... Loads of info - excellent.
Phil
I've been with Freeola for 14 years...
I've been with Freeola for 14 years now, and in that time you have proven time and time again to be a top-ranking internet service provider and unbeatable hosting service. Thank you.
Anthony

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.