0% found this document useful (0 votes)
241 views2 pages

Casio Calculator Program Library - Wak A Rat

This document describes a game program called "Wak A Rat" for Casio graphing calculators. The program simulates a game where rats pop up from holes on the screen and the user must press the corresponding key to "wak" or catch the rat before 100 rats appear. It includes the program name, author, description of gameplay, and the full program source code.

Uploaded by

SHAUN-PAUL MARSH
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
241 views2 pages

Casio Calculator Program Library - Wak A Rat

This document describes a game program called "Wak A Rat" for Casio graphing calculators. The program simulates a game where rats pop up from holes on the screen and the user must press the corresponding key to "wak" or catch the rat before 100 rats appear. It includes the program name, author, description of gameplay, and the full program source code.

Uploaded by

SHAUN-PAUL MARSH
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

9/12/2018 Casio Calculator Program Library - Wak A Rat

Casio Calculator Program Library

Program name: Wak A Rat (v. 1.0)

CTF file name: wakarat.ctf


Author: Tom Lynn
Date: 1997
Models: 9750, 9850, 9950

Description:
Vaguely inspired by the game in Sam 'n' Max (which I've never played...)
this is a simple to play but difficult(ish) to win game.

* How To Play *
After a quick countdown, "rats" start popping up out of the sixteen
"holes" at the left of the screen. Press the corresponding key from the
sixteen top-left keys (not counting function keys - [SHIFT] to [)]) to
"wak the rat". Wak all 100 rats to win.

Program source code:

Program "~WAKARAT"
ClrText
For 1->Y To 4
For 1->X To 4
Locate 4X - 3, 2Y - 1, "-"
Next
Next
Locate 17, 1, "WAK"
Locate 18, 3, "A"
Locate 17, 5, "RAT"
For 5->Y To 1 Step (-)1
Locate 17, 7, Y
For 1->X To 30:Next
Next
0->S
'START
Lbl 0
Locate 17, 7, S
S = 100 => Goto 5
1 + Int 4Ran#->X
1 + Int 4Ran#->Y
Locate 4X - 3, 2Y - 1, "\th"
1->A
Lbl 1
GetKey->K
8 - Int .1K->I
9 - 10Frac .1K->J

http://www.ex-parrot.com/tom/calcs/calcs/encyc/progs/wakarat.html 1/2
9/12/2018 Casio Calculator Program Library - Wak A Rat

I >= 1 => I <= 4 => J >= 1 => J <= 4 => Goto 3


Lbl 2
Isz A
A < 15 => Goto 1
Locate 17, 1, "TOO"
Locate 17, 3, "SLOW"
Locate 17, 5, " "
Stop
Lbl 3
Locate 4I - 3, 2J - 1, "X"
For 1->B To 10:Next
Locate 4I - 3, 2J - 1, "-"
I = X => J = Y => Goto 4
A - 10->A
Goto 2
Lbl 4
Isz S
Goto 0
Lbl 5
Locate 17, 1, "YOU"
Locate 17, 3, "WIN"
Locate 17, 5, " "

This page was created by Tom Lynn ([email protected]).


This page last updated: Friday, 30 April, 1999

Written in notepad and compiled with WTA, for clean, consistent


HTML.
Part of the Casio Graphical Calculator Encyclopaedia.

http://www.ex-parrot.com/tom/calcs/calcs/encyc/progs/wakarat.html 2/2

You might also like