NOGDUS
December 10, 2018, 04:59:33 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Blogs Help Search Tags Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: CASINO  (Read 1870 times)
0 Members and 1 Guest are viewing this topic.
Richard Marks
202192397
Administrator
Member
*

Respect: 3425
Offline Offline

Posts: 1027


happy


« on: August 29, 2009, 11:28:22 AM »

So I was going through some old files of mine, and ran across this simple game I wrote back in 2005.
It is a Win32 executable only, I don't think I still have the source. I may though. If I find it, I'll post it.

Below is a run-through of me playing it using WINE on Linux:
Code:
$ wine CASINO.EXE
 #####  #####  #####  #####  ##  #  #####
 #      #   #  #        #    # # #  #   #
 #      #####  #####    #    # # #  #   #
 #      #   #      #    #    # # #  #   #
 #####  #   #  #####  #####  #  ##  #####

Designed and developed by Richard Marks
(C) Copyright 2005, CCPS Solutions.
Visit us online at http://ccps.rpgdx.net

Read the rules? (y/n)
y

 #####  #####  #####  #####  ##  #  #####
 #      #   #  #        #    # # #  #   #
 #      #####  #####    #    # # #  #   #
 #      #   #      #    #    # # #  #   #
 #####  #   #  #####  #####  #  ##  #####

 Playing CASINO is simple.
 You will be dealt a card with a face value between 1 and 51.
 You will be asked for an amount of money to bet on the 'hand'.
 The CPU will be dealt a card as well as place a bet.
 If your card has a higher face value, you will win.
 If you lose all of your money, the game will end.

Have fun!
Press Return key to continue:
You have $100.
Your card holds a value of 42.
How much would you like to bet? (0 to quit)
$100
Yeowza a major risk-taker!
CPU places a bet of $10.
CPU plays a card with a value of 18.

* * * W I N N E R * * *
You gain $110!
Press Return key to continue:
You have $210.
Your card holds a value of 1.
How much would you like to bet? (0 to quit)
$50
CPU places a bet of $14.
CPU plays a card with a value of 20.

* * * Y O U  L O S E * * *
CPU gains $64!
Press Return key to continue:
You have $146.
Your card holds a value of 29.
How much would you like to bet? (0 to quit)
$100
CPU places a bet of $10.
CPU plays a card with a value of 9.

* * * W I N N E R * * *
You gain $110!
Press Return key to continue:
You have $256.
Your card holds a value of 15.
How much would you like to bet? (0 to quit)
$1 
CPU places a bet of $251.
CPU plays a card with a value of 6.

* * * W I N N E R * * *
You gain $252!
Press Return key to continue:
You have $508.
Your card holds a value of 32.
How much would you like to bet? (0 to quit)
$500
CPU places a bet of $11.
CPU plays a card with a value of 28.

* * * W I N N E R * * *
You gain $511!
Press Return key to continue:
You have $1019.
Your card holds a value of 42.
How much would you like to bet? (0 to quit)
$1000
CPU places a bet of $10.
CPU plays a card with a value of 46.

* * * Y O U  L O S E * * *
CPU gains $1010!
Press Return key to continue:
You have $9.
Your card holds a value of 28.
How much would you like to bet? (0 to quit)
$9
Yeowza a major risk-taker!
CPU places a bet of $10.
CPU plays a card with a value of 37.

* * * Y O U  L O S E * * *
CPU gains $19!
Press Return key to continue:
It looks like you're out of cash!
Thanks for playing.

Well...my luck didn't hold out Roll Eyes I was playing risky anyway. Grin
If anyone wants to give it a go to re-create this game, I give permission for you to do so.
Just give me some credit. Thats all I ask. Cool
Logged

Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!