Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 23 Jun 2017, 11:59
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Games
YahtzeeZ v1.1
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [8 Posts]  
Author Message
SFR


Joined: 26 Oct 2011
Posts: 1609

PostPosted: Mon 03 Apr 2017, 15:58    Post subject:  YahtzeeZ v1.1
Subject description: Yahtzee game, written in Bash and Gtkdialog
 

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!
yahtzeez-1.1.pet
Description  MD5: 032225e9f5e9f1a5b279c70fcd07bad7 yahtzeez-1.1.pet
pet

 Download 
Filename  yahtzeez-1.1.pet 
Filesize  6.94 KB 
Downloaded  45 Time(s) 
YahtzeeZ.png
 Description   
 Filesize   30.99 KB
 Viewed   295 Time(s)

YahtzeeZ.png


_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.

Last edited by SFR on Mon 10 Apr 2017, 06:42; edited 1 time in total
Back to top
View user's profile Send private message 
slavvo67

Joined: 12 Oct 2012
Posts: 1378
Location: The other Mr. 305

PostPosted: Mon 03 Apr 2017, 18:54    Post subject:  

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
Back to top
View user's profile Send private message 
spiritwild


Joined: 03 Oct 2016
Posts: 51

PostPosted: Mon 03 Apr 2017, 19:17    Post subject:  

Kewlness!!!
Back to top
View user's profile Send private message 
peebee


Joined: 21 Sep 2008
Posts: 2735
Location: Worcestershire, UK

PostPosted: Sat 08 Apr 2017, 07:23    Post subject:  

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

_________________
LxPup = Puppy + LXDE
Back to top
View user's profile Send private message Visit poster's website 
SFR


Joined: 26 Oct 2011
Posts: 1609

PostPosted: Sat 08 Apr 2017, 08:41    Post subject:  

@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!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
slavvo67

Joined: 12 Oct 2012
Posts: 1378
Location: The other Mr. 305

PostPosted: Sat 08 Apr 2017, 09:55    Post subject:  

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
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1609

PostPosted: Sat 08 Apr 2017, 10:20    Post subject:  

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!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1609

PostPosted: Mon 10 Apr 2017, 06:43    Post subject:  

Version 1.1:
  • added "Undo" option (thanks to peebee)
  • added score hints

First post updated.

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [8 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Games
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0496s ][ Queries: 14 (0.0075s) ][ GZIP on ]