Sign in to follow this  
Followers 0
theguy0000

Yahtzee!

7 posts in this topic

#1 ·  Posted (edited)

This took me forever...

It is the final version of the 1-player game. I'll add multiplayer soon.

If you see any other problems, please tell me.

Version 1.3

28 March 2007

  • Added - Re-Rolling of dice allowed. This is now a fully functional 1-player game of Yahtzee.
  • Thanks Kandy Man
Yahtzee_v1.3.zip

-----------------------------

Older Versions

Kept for reference

Yahtzee_v1.0.zip

Yahtzee_v1.1.zip

Edited by theguy0000

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites



thank you

try to fix the problems


Random

Share this post


Link to post
Share on other sites

Version 1.1

11 February 2007

  • Added - "lose a turn" feature so that the game does not get stuck when there are no possible scores
  • Fixed - Full House allowed more than once

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites

a little example how to get reroll

Func _reRollDice()
    IF $LockDice1 = 0 then
    $dice1 = Random(1,6,1)
;~  $dice_res[0] = String($dice1&$dice2&$dice3&$dice4&$dice5);dont realy know your script
    $dice_res[1] = $dice1
    Endif
    IF $LockDice2 = 0 then
    $dice2 = Random(1,6,1)
;~  $dice_res[0] = String($dice1&$dice2&$dice3&$dice4&$dice5)
    $dice_res[2] = $dice2
    EndIF
    IF $LockDice3 = 0 Then
    $dice3 = Random(1,6,1)
;~  $dice_res[0] = String($dice1&$dice2&$dice3&$dice4&$dice5)
    $dice_res[3] = $dice3
    Endif
    IF $LockDice4 = 0 Then
    $dice4 = Random(1,6,1)
;~  $dice_res[0] = String($dice1&$dice2&$dice3&$dice4&$dice5)
    $dice_res[4] = $dice4
    Endif
    IF $LockDice5 = 0 Then
    $dice5 = Random(1,6,1)
;~  $dice_res[0] = String($dice1&$dice2&$dice3&$dice4&$dice5)
    $dice_res[5] = $dice5
    Endif

    
    For $z = 1 To 2
        For $zz = 1 To 6
            GUICtrlSetImage ($DicePic1, "images\dice"&$zz&".bmp")
            GUICtrlSetImage ($DicePic2, "images\dice"&$zz&".bmp")
            GUICtrlSetImage ($DicePic3, "images\dice"&$zz&".bmp")
            GUICtrlSetImage ($DicePic4, "images\dice"&$zz&".bmp")
            GUICtrlSetImage ($DicePic5, "images\dice"&$zz&".bmp")
            Sleep(50)
        Next
    Next
    
    
    GUICtrlSetImage ($DicePic1, "images\dice"&$dice1&".bmp")
    GUICtrlSetImage ($DicePic2, "images\dice"&$dice2&".bmp")
    GUICtrlSetImage ($DicePic3, "images\dice"&$dice3&".bmp")
    GUICtrlSetImage ($DicePic4, "images\dice"&$dice4&".bmp")
    GUICtrlSetImage ($DicePic5, "images\dice"&$dice5&".bmp")
EndFunc

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Version 1.3

28 March 2007

  • Added - Re-Rolling of dice allowed. This is now a fully functional 1-player game of Yahtzee.
  • Thanks Kandy Man
see first post. Edited by theguy0000

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites

Hi,

not bad. :whistle:

I like the game and I thought of making a new Version of my Yahtzee.

Go ahead! :P

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

I'm gonna hopefully add multiplayer soon...


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0