Results 1 to 7 of 7
Thread: Running a game tournament
- 04-26-2013, 11:21 AM #1
Member
- Join Date
- Oct 2012
- Posts
- 64
- Rep Power
- 0
Running a game tournament
I am currently doing a task where I have programmed a board game, and have made computer players of the game using various algorithms. I am now trying to make a tournament amongst my players where every player plays every other player twice, with either one being given the first turn. I then have to make a List that lists the league positions of these various players in descending order by number of games won. I have to use Maps to initiate the tournament, but have no idea what should be the key and what should be the value?
- 04-26-2013, 04:14 PM #2
Member
- Join Date
- Oct 2012
- Posts
- 64
- Rep Power
- 0
Re: Running a game tournament
Why does nobody ever say anything?
- 04-26-2013, 04:27 PM #3
Senior Member
- Join Date
- Jan 2013
- Location
- Northern Virginia, United States
- Posts
- 6,226
- Rep Power
- 15
Re: Running a game tournament
Ok. I will say something. It's only been 5 hours since your original post. Sometimes it can be several days for someone to reply. Be patient.
Regards,
JimThe JavaTM Tutorials | SSCCE | Java Naming Conventions
Poor planning on your part does not constitute an emergency on my part
- 04-27-2013, 11:49 AM #4
Member
- Join Date
- Oct 2012
- Posts
- 64
- Rep Power
- 0
Re: Running a game tournament
I cannot believe nobody on the entire Internet has done this kind of thing before!
- 04-27-2013, 12:03 PM #5
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 14,422
- Blog Entries
- 7
- Rep Power
- 29
Re: Running a game tournament
Suppose the players are given a number 0, 1, 2 ... N-1. An NxN square matrix can model your tournament. The diagonal of the matrix is empty (a player can't play against him/herself). Each cell can take one of three values: row-player won, column-player won, not-played-yet. You don't need a map for that.
kind regards,
JosBuild a wall around Donald Trump; I'll pay for it.
- 04-27-2013, 12:38 PM #6
Member
- Join Date
- Oct 2012
- Posts
- 64
- Rep Power
- 0
Re: Running a game tournament
But the marking scheme of the assignment says "Correct usage of Maps to initiate tournament"?!
- 04-27-2013, 08:25 PM #7
Senior Member
- Join Date
- Oct 2010
- Posts
- 393
- Rep Power
- 11
Similar Threads
-
Tournament Pool and Bracket Tracker 0.6.1
By java software in forum Java SoftwareReplies: 0Last Post: 03-22-2013, 10:22 PM -
Game running far too fast on friend's computer
By ruben381 in forum New To JavaReplies: 2Last Post: 06-11-2012, 07:51 PM -
Problem running Applet in IE but works when running just Java in Netbeans?
By rodneyc8063 in forum Java AppletsReplies: 7Last Post: 12-18-2011, 04:13 AM -
Problem in running Java swing wizard in jre 1.6 while it is running in jre 1.4
By Sanjay Dwivedi in forum AWT / SwingReplies: 0Last Post: 08-26-2009, 01:03 PM -
Help With Tournament Trees
By wiggsfly in forum New To JavaReplies: 2Last Post: 10-26-2008, 09:38 PM
Bookmarks