gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Help Wanted > Poker Tournament Clock for the DS.

#151904 - tib696 - Thu Mar 06, 2008 3:05 pm

Hello,

i am searching for a poker tournament clock solution for the nintendo DS.

Here are some examples for pocket pc versions or desktop versions:
http://www.concretesoftware.com/product/tournamenttimer.shtml
http://www.birdsoft.biz/pokertimer.htm
http://www.seystech.com/Big_Slick_Mobile.htm
http://www.pokeraceptd.com/ (hardware device)

my idea is to display the blinds and the timer on the TOP screen, and a touch panel on the touch screen - where you can pause, play, set up the timer.

i?ve no experience in DS programing, so i will ask here, if someone is willing to develop this? I can give help in desinging buttons, and feature lists.

Thanks,
Tib

#151911 - nczempin - Thu Mar 06, 2008 4:04 pm

tib696 wrote:
Hello,

i am searching for a poker tournament clock solution for the nintendo DS.

Here are some examples for pocket pc versions or desktop versions:
http://www.concretesoftware.com/product/tournamenttimer.shtml
http://www.birdsoft.biz/pokertimer.htm
http://www.seystech.com/Big_Slick_Mobile.htm
http://www.pokeraceptd.com/ (hardware device)

my idea is to display the blinds and the timer on the TOP screen, and a touch panel on the touch screen - where you can pause, play, set up the timer.

i?ve no experience in DS programing, so i will ask here, if someone is willing to develop this? I can give help in desinging buttons, and feature lists.

Thanks,
Tib


I'll give it a shot. No promises as to schedule, however. I am a highly experienced professional coder, but have only just got started coding for the DS. I've also played a few FTF Poker tourneys.

It shouldn't be very difficult to do.

Incidentally, this thread would be better placed in the "help wanted" section.

#151915 - tib696 - Thu Mar 06, 2008 4:11 pm

ok.. please moderator - move this one to "Help Wanted" ;)

#151916 - tib696 - Thu Mar 06, 2008 4:38 pm

this is my first idea of the design... could be more colorful ;)



[Images not permitted - Click here to view it]

Features:
- Alert 1 minute before the countdown ends (choose from mp3 or wav)
- alert, when the countdown is over (choose from mp3 or wav)
- automatic blind level change and countdown starting.
- bet calculation (number of players, amount of bet, win% (50/30/20))

- configuration
-- blind table creation and save as presets
-- countdown length adjustable

- main touch
-- left for previeus blind level (manual change)
-- right for next blind level (manual change)
-- stop (one hit = Pause, holding or double hit = stop tournament)
-- play (if pause -> continous the pause - else start the tournament)
-- highlight the actual blindlevel in the blindtable
-- Settings --> go to the configuration

#151918 - nczempin - Thu Mar 06, 2008 5:35 pm

tib696 wrote:
this is my first idea of the design... could be more colorful ;)



[Images not permitted - Click here to view it]

Features:
- Alert 1 minute before the countdown ends (choose from mp3 or wav)
- alert, when the countdown is over (choose from mp3 or wav)
- automatic blind level change and countdown starting.
- bet calculation (number of players, amount of bet, win% (50/30/20))

- configuration
-- blind table creation and save as presets
-- countdown length adjustable

- main touch
-- left for previeus blind level (manual change)
-- right for next blind level (manual change)
-- stop (one hit = Pause, holding or double hit = stop tournament)
-- play (if pause -> continous the pause - else start the tournament)
-- highlight the actual blindlevel in the blindtable
-- Settings --> go to the configuration


It would be a good idea to separate the requirements into two areas:
1. The simplest thing that could possibly work. This means no choosing between mp3 or wav, no bet calculation.
2. All the other stuff that will be nice to have once 1) has been satisfied, preferably in order of priority as initially perceived (this can always be changed as we go along).

So, to find the absolute minimum, here's my counter-proposal for 1):
- The very basic functionality of a poker tournament clock is a timer, essentially a short-time alarm.
You need to be able to set the time between levels, start the timer, pause the timer and reset it. Plus some kind of sound as an alarm.

If you take away any of these, it would be pretty much useless.

Of course, this is no more than a mere stopwatch will give you, yet it has to be done first.

I'll fire something up, hopefully over the weekend, that provides that functionality.

In the meantime, you can try to organize the priorities of the other features.

It is highly likely that I will code the simplest-thing-that-could-possibly-work, plus a few essentials that will make it better than a stopwatch, and then release the source code into the wild ;-)

#151920 - tib696 - Thu Mar 06, 2008 5:47 pm

Great...

ok, i will try to prio them..

Features:
A/B- Alert 1 minute before the countdown ends
C-- choose alarmsound from mp3 or wav
A/B- alert, when the countdown is over
C-- choose alarmsound from mp3 or wav
A- automatic blind level change and countdown reset/start.
C- bet calculation (number of players, amount of bet, win% (50/30/20))

- configuration
A-- blind table creation (save some pre defined tables)
B-- the user can create and save several presets
A-- countdown length adjustable

- main touch
C-- left for previeus blind level (manual change)
C-- right for next blind level (manual change)
A-- stop/pause (one hit = Pause, holding or double hit = stop tournament)
A-- play (if pause -> continous the pause - else start the tournament)
A-- Reset button (one hit --> reset actual level. hold the button --> reset whole tournament)
C-- double speed button (hit on the button doubles the speed of the countdown. for speed up the game. (hit again for normal speed)
C-- highlight the actual blindlevel in the blindtable
C-- display the choosen blindtable
A-- Settings --> go to the configuration (simple configuration - time lenght etc)

A -- must have
B -- later
C -- nice to have sometimes ;)

#151929 - nczempin - Thu Mar 06, 2008 9:23 pm

tib696 wrote:
Great...

ok, i will try to prio them..

Features:
A- automatic blind level change and countdown reset/start.

- configuration
A-- blind table creation (save some pre defined tables)
A-- countdown length adjustable

- main touch
A-- stop/pause (one hit = Pause, holding or double hit = stop tournament)
A-- play (if pause -> continous the pause - else start the tournament)
A-- Reset button (one hit --> reset actual level. hold the button --> reset whole tournament)
A-- Settings --> go to the configuration (simple configuration - time lenght etc)


So basically the ability to save the blind structure and remember where we are within it is the second big feature after my bare-bones version.

I will give it a shot.
1. basic timer
2. blind structure

The code will get a fairly liberal open source license; we are not talking about black magic here ;-) Still, these things sell for around $15... I like the custom hardware best, but just because I know so little about hardware design that I find it fascinating.

I guess I'll send you the .nds and/or source by pm/email.

Start the timer, let's see how quickly a DS homebrew beginner can implement those requirements!

#151958 - tib696 - Fri Mar 07, 2008 12:44 am

I think... i never can do this ;)
i am planning to learn C a little bit... i?ve only PHP knowledge..

we will see..

#151959 - nczempin - Fri Mar 07, 2008 1:37 am

tib696 wrote:
I think... i never can do this ;)
i am planning to learn C a little bit... i?ve only PHP knowledge..

we will see..


don't worry, I'm a professional.

I wouldn't advise you to go straight to C from PHP. And in particular not on a machine like the ds. Try Java, Ruby or Scheme (find out what "SICP" is and work through it. Hint: it has been mentioned in the forum recently)

#152131 - nczempin - Mon Mar 10, 2008 2:28 pm

Here's a first shot, the Poker Clock for DS:
http://www.files.to/get/208762/5fffqafnji

#152147 - tib696 - Mon Mar 10, 2008 6:35 pm

hey,

cool... very basic, but functional ;)

next --> blind table (presets and then user defined presets)

;)

is someone here, who can give this a cool looking interface with touch control ?

#152152 - nczempin - Mon Mar 10, 2008 7:49 pm

tib696 wrote:
hey,

cool... very basic, but functional ;)


Yep, exactly as it should be. If you keep your Level<->Blinds table offline you can actually use it.

Quote:


next --> blind table (presets and then user defined presets)

;)


I'll do some fixed presets, what structures do you suggest?

Quote:

is someone here, who can give this a cool looking interface with touch control ?


I think the better question is who _wants_ to do it ;-)

The (fixed) blind table is probably as far as I will take it myself for now, although I might return to it at some other time; for now I simply have too many projects of my own.

Perhaps you would be willing to make the jump to C yourself. it's not _that_ hard ;-), just take it one thing at a time... there are friendly helpers in these boards, after all...

#152153 - tib696 - Mon Mar 10, 2008 8:02 pm

hi,

yes.. i am on my C training..

the problem with the blind table is, that every blind level needs its own countdown length. hm.. (for later versions)

1 -> 10/20 (20 min)
2 -> 15/30 (20 min)
3 -> 30/60 (15 min for the rest)
4 -> 40/80
5 -> 50/100
6 -> 80/160
7 -> 100/200
8 -> 150/300
9 -> 200/400
10 -> 300/600
11 -> 400/800
12 -> 500/1000
13 -> 600/1200
14 -> 750/1500
15 -> 1000/2000
16 -> 2000/4000
17 -> 3000/6000
18 -> 4000/8000
19 -> 5000/10000

thats enough ;) if you could put one table in, i think its easy to adjust it in the source code?

could you please send me the source code.. so i can look into it.

thanks.
tib

#152155 - nczempin - Mon Mar 10, 2008 8:13 pm

tib696 wrote:
hi,

yes.. i am on my C training..

the problem with the blind table is, that every blind level needs its own countdown length. hm.. (for later versions)

1 -> 10/20 (20 min)
2 -> 15/30 (20 min)
3 -> 30/60 (15 min for the rest)
4 -> 40/80
5 -> 50/100
6 -> 80/160
7 -> 100/200
8 -> 150/300
9 -> 200/400
10 -> 300/600
11 -> 400/800
12 -> 500/1000
13 -> 600/1200
14 -> 750/1500
15 -> 1000/2000
16 -> 2000/4000
17 -> 3000/6000
18 -> 4000/8000
19 -> 5000/10000

thats enough ;) if you could put one table in, i think its easy to adjust it in the source code?

could you please send me the source code.. so i can look into it.

thanks.
tib


I guess with the current version you'd have to manually change the time at level 3.

I'd put in at least two fixed schedules, so if you gave me another that would be great.

Then you could see fairly easily how to add your own.

Adding customizability, while not impossible, would take a lot more effort than I am currently willing to spend on this project. I'd be willing to help out occasionally with suggestions in case you want to take on the project yourself. I'll send you the code, and it would be best if you were to host it in some public place; I'd like this to be on a GPL basis; that way other coders can also help you out more easily.

Not sure if there's some place on drunkencoders or whereever, or if you could just grab some free webspace and host it there.

BTW you should focus on the functionality. Once it has all you need in that area, you can always make it more glitzy, add touch support etc.

#152161 - tib696 - Mon Mar 10, 2008 9:49 pm

a faster one ;)

1 -> 10/20 (20 min)
2 -> 20/40 (20 min)
3 -> 40/80 (15 min for the rest)
4 -> 80/160
5 -> 150/300
6 -> 200/400
7 -> 400/800
8 -> 800/1600
9 -> 1500/3000
10 -> 3000/6000
11 -> 5000/10000
12 -> 10000/20000
13 -> 20000/40000