Algorithm Help - Rummikub game, determine if a set containing a joker is valid

free web hosting
Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > Others

Algorithm Help - Rummikub game, determine if a set containing a joker is valid

sonesay
Hey guys I'm working on a project for making a java based version of the Rummikub game and I'm having a bit of trouble coming up with an algorithm for determing if a joker being played in a set is valid. If anyone can throw some ideas on what to check for and do it would be great. I'm only starting to look into it now but its becoming clear it that it can be a bit complicated for my small brain. You can google the rummikub game if you have no idea and the rules behind it.

Looking forward to hear any responses and idea to help me out thanks
biggrin.gif

Reply

dimumurray
Well, I'm always up for a challenge. I'll take a look and see what I can come up with.

Edit:
Just skimmed through a synopsis of the game (via Rummikub - Wikipedia) . From what I can tell its scrabble (more or less) but without the letters and loads of twists thrown in for good measure. Looks pretty interesting.

Edit:
This is what I got thus far:
  • You cannot play a card at the extremities of a 'run' (that is before an Ace or after a King), Jokers are not exempt for this rule
  • Once a Joker is in play it maintains its assumed value and color/suite unless substituted for a card with that same value and color/suite. Players amending to a Joker in play cannot alter the Joker's assumed value without substitution.
  • If substituted, the Joker must be played during that same turn with a minimum of two other cards.
  • In a 'group' of three the Joker has one value but two possible colors/suites. Color is 'locked' when amended with a card suitable to the 'group'
It would also be cool to indicate a Joker's assumed value and color by having the card animate in some way to reflect its chameleon like nature. Say that Jokers start out with a standard look, but when placed on the game grid they partially morph to mimic their assumed value. In the case of the last bullet point where it is one of three cards in a 'group' it might constantly shift between the two colors.

 

 

 


Reply

sonesay
Thanks for the response. I posted this earlier today out of frustration of trying to come up with an algorithm on my own as I'm not too good and not had to come up with them on my own. You did point out somethings I didn't think of and I appreciate the input.

I forgot to mention that some of the rules in the game we are creating are a bit different but the differences are only slightly. I know I should post them but I don't have them all here in my head.

I started to draw it in MS visio and started to notice things I didn't think about in my initial notes either so I'll post it here. Maybe more suggestions and enhancements can be made. Its still not complete but it should give you an idea of what I'm trying to do.

Yes this is the first time I'm trying to write an algorithm biggrin.gif

Edit: The enhancment ideas you suggest are cool but to be honest I'm not sure I will be able to get it done and included in the time frame we have been given. Its week 4 into our semester and the projects due week 12 so I basically have only 8 weeks to have a complete working game. That on top of my lack of experience with GUI's in java will be a challenge. Last semester I did a mine sweeper game in java but I didn't finish it because I tried to do all the GUI part in the last weekend and was so confused about how they worked that I got stuck on handling of events.

Reply

dimumurray
QUOTE(sonesay @ Aug 7 2008, 12:36 AM) *
The enhancment ideas you suggest are cool but to be honest I'm not sure I will be able to get it done and included in the time frame we have been given. Its week 4 into our semester and the projects due week 12 so I basically have only 8 weeks to have a complete working game.


That looks like a pretty tight schedule. I can't pretend to be a very fast programmer myself, so only having 2 months to get every thing up and running seems a bit close to me. It seems that you have a project plan mapped out though. Just make sure that you have that plan well defined before you start coding anything. It's good practice to work out as many kinks as you can during the planning stages of an app. You can't foresee every possible stumbling block but if you devote enough time to planning the development phase should be much smoother.
Are you building your GUI from scratch, building your GUI using an API like SWING or a combination of both?

Reply

sonesay
Yeah we build everything from scratch but lucky for us we can use what ever IDE we like well pretty much anything language if we are confident enough. I'm only using java because thats what I've been taught and know (I have no choice). We got introduced to netbeans at the end of last semester so I have a little experience in that. We are using swing and the newer xswing. It helps out a lot in creating quick GUI's but the code it generates is real big and I find I have to spend a bit of time trying to see where things fit in together.

Yeah the schedule is pretty tight so I'll be fully stressed out for the next few months lol. I've got 3 other classes I need to make sure I keep up to so I'll try and keep the design and function of it as simple as I can to keep the complexity down. Yeah the planning is important and we are pretty much being taught and given the project to work on at the same time.

I'll post the updated flow diagram soon. I think that's what the lecturer wanted a low level description of how we will do the algorithm to check if a set is valid or not.

Edit heres the updated diagram. Logics probably wrong any changes?

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. algorithms for naruto based rpgs - 57.79 hr back. (1)
  2. expensive rummikub games - 126.93 hr back. (1)
  3. rpg makers xp jutsus - 137.80 hr back. (1)
  4. rummikub java - 139.19 hr back. (1)
  5. rummikub video game - 140.19 hr back. (2)
  6. call of duty 4 algorithm - 141.27 hr back. (1)
  7. php get set save isvalid - 152.06 hr back. (1)
  8. algorithm help - 333.79 hr back. (1)
  9. rummikub algorythm - 337.12 hr back. (1)
  10. site:www.trap17.com rummikub algorithm - 349.53 hr back. (1)
  11. rummikub algorithm - 44.27 hr back. (4)
Similar Topics

Keywords : algorithm, rummikub, game, determine, set, joker, valid

  1. How To Start Your First Game Project
    The first steps to creating your own game! (0)
  2. Empire Earth
    i've been playing this game for a while and it's fun (0)
  3. Resistance: Fall Of Man || Best Game For Ps3?
    It's good, but is it the best? (0)
    I have played through RFOM several times have beaten easy/medium/hard/ and am working on superhuman.
    It is a descent game and has exciting gameplay. its dynamic environments are really good. the
    weapons are also really sweet(the bullseye mark II especially) the graphics could be better, but are
    still quite good. I have run into some glitches along the way though. -indestructible chimera(they
    just stand there) -can get through wall(shouldn't be able to) -blind chimera?(holding gun, even
    moves when you hit it!, but doesn't see me!) overall, is a great gam....
  4. Make An Online Game To Earn Money
    Mainly for students (4)
    Hi im New but i have discoverd a way to make money its quite simple /biggrin.gif"
    style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />. I always wanted to make my
    own game then i heard of mc codes i downloaded it and it took me about 2 months to setup /ohmy.gif"
    style="vertical-align:middle" emoid=":o" border="0" alt="ohmy.gif" /> , Yup it took me long because
    this was my first time editing script and im still a newbie cant blame me im only 15 /tongue.gif"
    style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> any way i made money....
  5. Microsoft Video Game Banned For Sex Scene
    The first time it happened to Microsoft. (17)
    News: Microsoft video game banned for sex scene Source:
    http://today.reuters.com/news/articlenews....NGAPORE-BAN.xml What do you think about that, a
    Microsoft video game banned for sex scene, in Singapore, i guess this must be an humiliation, and
    the fact that it is the first it happened to the giant company Microsoft makes it even more hard to
    digest for the Microsoft and for all the people involved on the creation of the Microsoft game,
    namely, "Mass Effect" which is a highly anticipated futuristic space adventure game, a cool game in
    my opinion by the way. I care ....
  6. Next Generation Pokemon Games
    Hey, I am currently creating my own pokemon game... (3)
    My name is Areo X. I am currently under development for Two next gen pokemon games, Pokemon Black
    Gem and White Jade Versions. They take place on the Kahoto Island region. You can play either as Max
    (Male) or Robin (Female). Our team has currently created and designed over 2o new pokemon, including
    3 new starters and 2 legendary pokemon. To find out more about these games, please visit our
    HomePage @ www.freewebs.com/pokemonadvancer This is only temorary untill we can host with Trap17.....
  7. Help Me Find A Mmorpg Game!
    any recommendation? (25)
    hi, im a mmorpg gamer..i just want to get opinions/suggestions to you guys out there if what would
    be the best mmorpg games that is f2p (free 2 play) that i can download and play? thanks..
    /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /> Please be
    more descriptive in your topic titles. ....
  8. Making Games
    With Game Maker (18)
    Hi. /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> I just
    wanted everyone to know(if you didn't know already. /smile.gif" style="vertical-align:middle"
    emoid=":)" border="0" alt="smile.gif" />) of a pretty cool program called Game Maker. From my
    experience with it, it's very simple, yet you can still make awesome games with it. Now, when I
    say "awesome" keep in mind, you won't be able to make games like "Halo" or something like that
    with it. But you can make pretty cool games still, it is capable of 2D and 3D games, alth....
  9. The Best Pc Game
    GIVE YOUR OPINION (20)
    I want your opinion about this questio. I think the best games are the FIFA game (by EA sports). But
    also a beautiful game is Smackdown VS Raw 2007. ....
  10. Gunz Online
    A First person shooter game (5)
    It is a new game still in the BETA Stages. All i know, it has two types. One Indian version and one
    International version. Im currently using the Indian version. It is a first person shooter. It is
    basically shooting in rooms having different types of games like deathmatch, team deathmatch,
    gladiator, assassination, training and team gladiator. It has different scenario's in rooms like
    island, prison, mansion, factory, railway station etc. It also has a shop with different weapons,
    clothes etc. It is basically shooting, getting your level up and getting bounty with ....
  11. Most Realistic Racing Game
    (17)
    What do you feel is the most realistic driving game? In my opinion Gran Turismo 4 is the best.....
  12. The Best Multiplayer Game
    Tell us which multiplayer game do you consider to be the best (63)
    Playing singleplayer is no fun. It's better when you compete with human brain. So friends which
    is your pick. Mine is Soldier of Fortune. The graphics are cool and the gameplan and team strategy
    required just makes the game a perfect choice for LAN gaming.....
  13. Driver!
    That oldschool Driver1 game! (19)
    Has anyone played Driver 1? They have Driv3r now, and it's not too great... but when Driver
    first came out it was an awesome driving game. Has anyone played it? I still have my copy, and
    play it every once and a while.....
  14. Video/computer Game Cliches
    (22)
    Alrighty, I saw this one on another forum and thought it would be fun to do here. Post up some of
    the biggest cliches in gaming today that you can think of. I'll start off with a bunch: World
    War I and II -- The number of World War games has gotten utterly ridiculous lately. I mean, I do
    enjoy a good run of Battlefield, but it's kind of annoying to see 40 different World War games
    to pick and choose from these days. I was just visiting GameFAQs.com and saw an ad for Company of
    Heroes, which, you guessed it, is a World War 2 game. Infinite/Many Lives -- Gam....
  15. The Best Car Game Ever?
    (30)
    what do you this is the best Action game ever???? i think "Mafia" is the best i tried alot of
    games but mafia still on the top >Story >Game play >Graphic >Evry thing.... what is
    your opinion?....
  16. Game Maker
    Game Creation System (15)
    Always wanted to make games? Check out Game Maker . It's free and you can do so much with it.
    "Have you ever wanted to be able to design computer games, but didn't want to spend countless
    hours learning how to become a programmer? Then you've come to the right place. Game Maker is a
    program that allows you to make exciting computer games, without the need to write a single line of
    code. Making games with Game Maker is a lot of fun. Using easy to learn drag-and-drop actions, you
    can create professional looking games within very little time. You can make gam....
  17. Strategy For Age Of Empires.
    A strategy for the Age of Empires 3 game. (4)
    Spanish Pikemen Rush. Yet another of my Age of Empires Strategies. This time a rush (building
    an army quickly to destroy or critically harm an enemy). This rush needs good villager micro, a fair
    understanding of rushes and a Spanish civilization around level 10+. It is also good to know how a
    FF works. The Strategy. As usual put all your villagers on huntables and leave one to collect
    the crates, food first then wood and finally gold. Make villagers as soon as you can, set their
    gather point on a huntable animal. Once the crates have been collected build a house....
  18. Mu Online
    who have played this game? (7)
    I once played it in summe on latvian server MU-Dream.. Then I liked that game and I could play it
    for hours.. but after 2 weeks it started to get harder and harder to rise my skills and so I played
    it less and less.. So now I have quite it /sad.gif' border='0' style='vertical-align:middle'
    alt='sad.gif' /> .. But I want to play it agan.. Can someone tell me very good server with easy % to
    rise skills and Drop % ? Alredy thanks for your answears.. P.S - I didn't found any topic
    about this world popular game so I created new one /wink.gif' border='0' style='vert....
  19. Need 4 Speed Underground 2
    save game (4)
    Does anybody know how you save your game in need 4 speed underground 2 on th game boy advance SP,
    because i cant find a save option. i dont no whether or not if its the game i bought as i got it
    from turkey, and most of them are copies. Its really anoying me because i keep getting so far, but
    then the power runs out, and i have to start again.....
  20. Super Smash Bros Melee
    the best GCN game?+fav characters (36)
    so many people love SSBM. people buy the GCN just for this game! here we shall discuss random
    stuff about it's greatness! my best characters:(ordered) 1.Falco 2.Luigi 3.Peach 4.Roy
    5.Young Link/ Link (same) this game in my opinion is the best fighting game ever. it takes skill
    and a noob cant just walk up and button mash and win against an advanced player like in other
    fighting games. even the cheepest tactics can be countered by a skilled player. according to many
    tiers(best character lists) there are the top characters: 1.Sheik(not zelda) 2. Fox 3. Marth....
  21. Gunz Online
    Gunz The Duel: coolest 3D game (34)
    Gunz Online Anyone play this yet? It looks cool guys, The graphic was ok and this game is like
    counter strike but you can use swords, mire guns, etc. Make room, kill player, get money, buy stuff
    and so on. This is a multiplayer, the bad thing is that sometimes there are times that you
    can't connect in fast because that are many players in the server (there are 6 servers). So if
    you cannot connect it, then you have to hold on your enter button and dont pull out your finger and
    just hold on until it is connected. Here is the link: Gunz Online ....
  22. Whats Your Favourite Rts Game?
    favourite rts game. (53)
    My favourite real time strategy is by far Starcraft Brood War. I dont think any game can beat it.
    Has soo many people on Battle.net playing and its soo fun. What other RTS's do you like?....
  23. Best Racing Game For Pc
    Opinions wanted (14)
    My friend wanted to buy a driving PC game but he doesn't know that much about racing games. The
    choices that we've come up is: Grand Turismo, Midnight Club, and Burnout. Is there any other
    games that would be really good for PC with wheel/brake? Thanks for your time.....
  24. Resident Evil 4
    comments about this grat game (25)
    Hi!!! for me this is the best game ever!!! ... graphics, sound, the style
    of play ... in gamespot the rate the game 9.6 of 10!!! thats great!!! if
    you dont know anything about this games enter here
    http://www.gamespot.com/gamecube/adventure...il4/review.html check the reviews and the
    images!!! are great!!!! i want to read your comments about this
    game!!! and if you think that the story stills have relation or it is only a patch like
    many others come on !! POST!....
  25. Runescape (online Game By Jagex)
    Anyone play it? (49)
    HI, my runescape username is melkonianarg, and i'm basically a newbie on it. I was endering if
    anyone else on this forum had heard of it, or had played it or has an account. I have found out
    that the best way of playing it, other than simply completing quests is to get together in groups to
    do stuff, like abush people in the wilderness or all go mining. This way the most amount of raw
    materials is produced and can be made into bars of metal, followed by shields and weapons including
    swords , scimitars and bows, ranging from longbows to short bows...So anyone playe....
  26. Best free game maker
    (15)
    Guys do you's know of any easy to use, good graphics, 2d, free, game maker? becuase i've wanted to
    try one out. I know about rpg gamemaker xp, thats it, any other ones? -Thanks.....
  27. Number Guessing Game
    number guessing game (9)
    do you still have the code for that number guessing game?....
  28. What's Your Favorite Game System - Console
    select one from each poll (180)
    i'm a computer game fan. it's expensive but more useful. it can be use for many purpose for
    your study and entertainment. much easier to use and most common to more people.....
  29. Best soccer game - Fifa or PES?
    (42)
    in my opinion, it's pro evolution soccer (3) /tongue.gif" style="vertical-align:middle"
    emoid=":P" border="0" alt="tongue.gif" />....
  30. The Naruto Online Game
    Ninja, online, game, naruto, mmorpg (38)
    The Naruto Online Game Learn the way of Shinobi as you start as an
    aspiring Academy Student. Fight your way to the top to become the Kage: the single shadow that
    protects your village from any danger, or become your village's worst nightmare as a wandering
    Outlaw of pure darkness. Hundreds of Jutsus are at your feet, ready to be called upon in the any
    mission; from the easiest of errands to the most lethal of enemies. Learn to harness the Bloodline
    passed down to you, or awaken the Demon that slumbers within. Can you handle the pressure? O....

    1. Looking for algorithm, rummikub, game, determine, set, joker, valid

Searching Video's for algorithm, rummikub, game, determine, set, joker, valid
Similar
How To Start
Your First
Game Project
- The first
steps to
creating
your own
game!
Empire Earth
- i've
been playing
this game
for a while
and it's
fun
Resistance:
Fall Of Man
|| Best Game
For Ps3? -
It's
good, but is
it the best?
Make An
Online Game
To Earn
Money -
Mainly for
students
Microsoft
Video Game
Banned For
Sex Scene -
The first
time it
happened to
Microsoft.
Next
Generation
Pokemon
Games - Hey,
I am
currently
creating my
own pokemon
game...
Help Me Find
A Mmorpg
Game! -
any
recommendati
on?
Making Games
- With Game
Maker
The Best Pc
Game - GIVE
YOUR OPINION
Gunz Online
- A First
person
shooter game
Most
Realistic
Racing Game
The Best
Multiplayer
Game - Tell
us which
multiplayer
game do you
consider to
be the best
Driver!
- That
oldschool
Driver1
game!
Video/comput
er Game
Cliches
The Best Car
Game Ever?
Game Maker -
Game
Creation
System
Strategy For
Age Of
Empires. - A
strategy for
the Age of
Empires 3
game.
Mu Online -
who have
played this
game?
Need 4 Speed
Underground
2 - save
game
Super Smash
Bros Melee -
the best GCN
game?+fav
characters
Gunz Online
- Gunz The
Duel:
coolest 3D
game
Whats Your
Favourite
Rts Game? -
favourite
rts game.
Best Racing
Game For Pc
- Opinions
wanted
Resident
Evil 4 -
comments
about this
grat game
Runescape
(online Game
By Jagex) -
Anyone play
it?
Best free
game maker
Number
Guessing
Game -
number
guessing
game
What's
Your
Favorite
Game System
- Console -
select one
from each
poll
Best soccer
game - Fifa
or PES?
The Naruto
Online Game
- Ninja,
online,
game,
naruto,
mmorpg
advertisement



Algorithm Help - Rummikub game, determine if a set containing a joker is valid



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE