|
|
|
|
![]() ![]() |
Aug 6 2008, 11:36 PM
Post
#1
|
|
|
|||[ n00b King ]||| ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 714 Joined: 20-June 07 From: Auckland Member No.: 45,102 myCENT:12.37 |
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 |
|
|
|
Aug 7 2008, 01:48 AM
Post
#2
|
|
|
Member [Level 1] ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 60 Joined: 30-July 08 From: Bronx, NY Member No.: 65,739 |
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:
This post has been edited by dimumurray: Aug 7 2008, 03:16 AM |
|
|
|
Aug 7 2008, 04:36 AM
Post
#3
|
|
|
|||[ n00b King ]||| ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 714 Joined: 20-June 07 From: Auckland Member No.: 45,102 myCENT:12.37 |
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. This post has been edited by sonesay: Aug 7 2008, 04:41 AM
Attached File(s)
|
|
|
|
Aug 7 2008, 04:00 PM
Post
#4
|
|
|
Member [Level 1] ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 60 Joined: 30-July 08 From: Bronx, NY Member No.: 65,739 |
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? This post has been edited by dimumurray: Aug 7 2008, 04:02 PM |
|
|
|
Aug 7 2008, 09:21 PM
Post
#5
|
|
|
|||[ n00b King ]||| ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 714 Joined: 20-June 07 From: Auckland Member No.: 45,102 myCENT:12.37 |
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? This post has been edited by sonesay: Aug 7 2008, 10:04 PM
Attached File(s)
|
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 22nd November 2008 - 03:15 AM |