YahtzeeZ v1.1

Play with your Puppy.
Post Reply
Message
Author
User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

YahtzeeZ v1.1

#1 Post by SFR »

This is my implementation of the classic Yahtzee game.
The general look of the GUI (as well as "Sequence of 3/4" instead of "Small/Large Straight" naming convention) was inspired by OpenYahtzee.

However, note that I didn't implement Yahtzee Joker - there are slightly different variants of this rule out there and I couldn't decide which one's the best, but mainly because I don't really like how it restricts the player.
There's still Yahtzee Bonus, though...

Therefore, you can freely put any subsequent Yahtzee wherever you like and score appropriately (btw, I consider e.g. 33333 to be a valid Full House) + if you have already scored Yahtzee, you'll get 100pts Bonus.
I think it's simpler and clearer this way.
___________

Requirements: Bash, Gtkdialog >= 0.8.3
___________

Changelog

Version 1.1:
  • added "Undo" option (thanks to peebee)
  • added score hints
Version 1.0:
  • initial release
___________

Have fun &
Greetings!
Attachments
yahtzeez-1.1.pet
MD5: 032225e9f5e9f1a5b279c70fcd07bad7 yahtzeez-1.1.pet
(6.94 KiB) Downloaded 334 times
YahtzeeZ.png
(30.99 KiB) Downloaded 571 times
Last edited by SFR on Mon 10 Apr 2017, 10:42, edited 1 time in total.
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

slavvo67
Posts: 1610
Joined: Sat 13 Oct 2012, 02:07
Location: The other Mr. 305

#2 Post by slavvo67 »

SFR:

More fine work. Thanks. Funny, I initially didn't realize that you just click on the button to the left of the total. Here I am trying to punch in the numbers like a bobo. LOL

Anyway, I got it and works fine in Quirky Xerus64 / RU Xerus64.

Thanks,

Slavvo67

User avatar
spiritwild
Posts: 181
Joined: Mon 03 Oct 2016, 10:06

#3 Post by spiritwild »

Kewlness!!!

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

#4 Post by peebee »

Nice little fun app very much in the Puppy "tradition" - many thanks

A useful addition for when you click the wrong category in error would be an undo button - or if that's too difficult maybe a confirmation request before registering the score if the score is 0?

Cheers
peebee
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#5 Post by SFR »

@Peebee: Yeah, the current code design isn't really undo-friendly indeed, but I'll look at it in a spare moment.

@Slavvo67 & Spiritwild & Peebee: Thanks guys!

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

slavvo67
Posts: 1610
Joined: Sat 13 Oct 2012, 02:07
Location: The other Mr. 305

#6 Post by slavvo67 »

Hi SFR:

Just a quick note: When you score high enough, the program says it saves your score to a high score list. Unfortunately, the score does not register there.

Not a big deal; just a note.

Best,

Slavvo67

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#7 Post by SFR »

slavvo67 wrote:Hi SFR:

Just a quick note: When you score high enough, the program says it saves your score to a high score list. Unfortunately, the score does not register there.

Not a big deal; just a note.

Best,

Slavvo67
You can save your score after each game and it should be preserved (provided that you cliked the "Save" button or just hit Enter).
Do you have $HOME/.yahtzeez.hi file?
What are its contents, is it empty?
Any error messages if you run YahtzeeZ from CLI and try to save your score?

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#8 Post by SFR »

Version 1.1:
  • added "Undo" option (thanks to peebee)
  • added score hints
First post updated.

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

Post Reply