sonesay
Aug 6 2008, 11:36 PM
| | 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
 |
Reply
dimumurray
Aug 7 2008, 01:48 AM
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
Aug 7 2008, 04:36 AM
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  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
Aug 7 2008, 04:00 PM
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
Aug 7 2008, 09:21 PM
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
Similar Topics
Keywords : algorithm, rummikub, game, determine, set, joker, valid
- How To Start Your First Game Project
The first steps to creating your own game! (0)
Empire Earth
i've been playing this game for a while and it's fun (0)
Can't Decide What Game To Buy
(11) Well, recently I had my 8th grade graduation and I got $70 as a present. Well, I am wanting to
get a game with my money. Only problem is I can't decide what to get. I am thinking of buying
Call of Duty 4:Modern Warfare for PC, but I am not sure if I can run it. I also am thinking of
buying Warhammer 40k:Dawn of War, which I know I can run. Then there are different Nintendo Wii game
I want such as Mario Kart Wii, and Wii Fit. I can't decide out of all these games. So I need
some recommendations for games for me to get.....
What Is The Best Rpg Besides Ff?
The Best RPG game for the PS2 or Xbox 360? (6) I was wondering what was the best RPG Role Playing game for the PlayStation 2 or Xbox 360. I enjoy
the Final Fantasy series. I've played most of the originals for the original Playstation.
I've played FF X, FF X-2, and FF XII. I wanted to know are there any other good RPG games
besides Final Fantasy?....
Budding Java Game Developers?
Ever wanted to make your own java web-based game, but not had the time (9) Right, this is the first post of hopefully many in this thread. Basically the idea is to get many
developers together to share ideas and knowledge to create our very own game. First we'll be
asking for is any ideas of what kind of game everybody would like to make, and then we'll set
about assigning tasks depending on everybodies skills. We will need programmers, artists,
web-designers, even admin and marketing. This will be freeware, but the experience will be great.
So, ideas anyone?....
A New Game Idea For The Future
New game (9) I haven't started collage to be a video game programmer and lead designer. But i have a great
idea for a game and i wanted to share it with some people to get their opinion. The game is a first
person shooter (and can be made a rpg) and its about 2030 and man kind has just found out a way to
reach the next solar system that has alien life on it. When it all goes wrong and we have to save
our planet from destruction from aliens. You are sent out to stop them on lots of missions to
destroy their "mother ship" or a planet (not sure yet). Thats it so far its a work in pr....
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 ....
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.....
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. ....
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. ....
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 ....
Most Realistic Racing Game
(17) What do you feel is the most realistic driving game? In my opinion Gran Turismo 4 is the best.....
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.....
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.....
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?....
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....
Looking For An Airplane Fighter Game
Any suggestions (5) I've had this urge...to fly airplanes and blast things to pieces (I I want the ability choice
my airplane and buy new ones, along with new weapons for such aircrafts. I want lots of blowing up
of things and good graphics(the better the graphics the bigger the explosion!). I'd like
some optional nifty things... these include: The ability to eject when you get your butt whooped I
forget the name, but that weapon that shoots radar jammers out of the back of the jet to stop enemy
missles from locking on. I'd also like the game to be for the xbox...PS2 if ....
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....
Samurai War Rpg
game (4) My bro just told me about this game (still play rs though) well its and RPG game. almost like the
army system here but different. ull see. Just Click on This Link To Go There =\ ((sigh
having problems with computer)) Moving from General Talk to Games > RPG ....
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.....
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 ....
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?....
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.....
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!....
Coke Music
an online sim game (7) Ya I just started playing coke music again and I was woundering anyone here play? If so post ur name
here and we can have a green party at my studio for non coke members green is for good song.....
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....
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.....
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.....
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" />....
The Naruto Online Game
Ninja, online, game, naruto, mmorpg (39) 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....
Looking for algorithm, rummikub, game, determine, set, joker, valid
|
|
Searching Video's for algorithm, rummikub, game, determine, set, joker, valid
|
advertisement
|
|