You can write playable games on many Casio graphing calculators by typing a short program in the calculator's built-in BASIC-style language (Casio calls it "Program" mode), storing it in the program area, and running it from the program list. No computer or cable is required for simple text and number games — a Casio fx-9750GIII, fx-9860G series, or similar graphing model with Program mode is enough. The exact key labels and menu names vary by model and firmware version, so treat the key names below as a guide and check your model's user guide for the precise wording.
What You'll Need
- A Casio graphing calculator that has a Program (PRGM) mode — most fx-9750G, fx-9860G, fx-CG and ClassWiz graphing models do. Basic non-graphing scientific models generally do not support user programs.
- The calculator's user guide for your exact model (Casio publishes PDFs on its support site).
- Fresh or charged batteries — a program that crashes mid-run on low power can lose unsaved edits.
- Optional: a USB cable and Casio's official transfer software if you want to back up programs to a computer. Only use the official software from Casio.
Step-by-Step
- Open Program mode. From the main menu, select PRGM (on many models it is reached through the MENU key). You will see a list of stored programs, or an empty list.
- Create a new program. Press the key your model uses for NEW (often F3, or a labelled soft key at the bottom of the screen). Give the program a short name using letters and numbers only — no spaces — for example
GUESS. Confirm to open the editor. - Learn the three commands you actually need. Most calculator games are built from:
?→A(prompt the user and store the answer in variable A),If ... Then ... Else ... IfEnd(branching), andLbl/Goto(jumping back to the start of a loop). Output usesClrTextto clear the screen andLocateor a quoted string on its own line to print text. Insert these from the PRGM and VARS menus rather than typing them by hand — the menus guarantee correct spelling. - Write a tiny first program. A number-guessing game is the standard starter. In outline: clear the screen, print a prompt, use
?→Gto read the guess, compare it with a value you set earlier (for example7→N), and useIfto print "TOO LOW", "TOO HIGH" or "CORRECT". End with aGotoback to a label at the top so the player can guess again. - Run it. Exit the editor (usually EXIT), highlight the program in the list, and press the RUN soft key. Test with obvious inputs first — a guess below the target, above it, and exactly on it — so you can see each branch working.
- Debug by reading the error. If the calculator throws a syntax or math error, it usually highlights the offending line. Press EXIT to return to the editor, fix that line, and run again. A common cause is a missing
IfEndor a variable used before it is set. - Add a screen refresh. Games that print repeatedly will scroll the display. Put
ClrTextat the top of the loop, or useLocateto place each character at a fixed row and column so the screen redraws in place. - Save and back up. Programs save automatically to the calculator's memory when you exit the editor. For anything you care about, copy it to a computer with the official cable and software, or write the listing down — a memory reset wipes user programs.
Common Mistakes
- Typing commands letter by letter. The calculator stores commands as tokens, not text. Hand-typed "If" will not run; insert it from the PRGM menu.
- Forgetting
IfEnd. EveryIf ... Thenblock needs a closingIfEnd, or the next lines get swallowed into the block. - Reusing variables carelessly. A–Z and the list variables persist between runs. Set every variable you rely on at the start of the program.
- Expecting graphics that are not there. Text and number games work on almost every programmable model; sprite-style graphics and sound depend heavily on the model and are not available on all of them.
- Running out of memory. Long programs and stored lists compete for the same memory. Delete old programs you no longer use.
Tips
- Write the game logic on paper first — the small screen makes editing slow.
- Keep programs short and test after every few lines rather than writing the whole game before the first run.
- Use a separate label for "restart" and "quit" so players can leave without pulling the batteries.
- If your model supports it, the catalogue (CATALOG) menu is the fastest way to find a command you have forgotten.
Troubleshooting
If the program will not run at all, check you are in RUN mode rather than the editor, and that the program name is selected. If you get a syntax error on a line that looks fine, delete the line and re-insert the command from the PRGM menu — a stray character is usually the cause. If the screen fills with output and the prompt disappears, add ClrText at the top of the loop. If the calculator freezes, press the reset button on the back (a paperclip works) — this clears memory, so back up first. If programs vanish after a battery change, the backup battery or main batteries were too low; replace them and reload from your computer copy.
Frequently Asked Questions
Can I write games on a non-graphing Casio?
Generally no. Program mode is a feature of the graphing models; basic scientific calculators do not let you store and run your own programs.
Do I need a computer?
No for simple text games — you can type and run them entirely on the calculator. A computer and the official cable are only useful for backing up or transferring longer listings.
What language is it?
It is Casio's own BASIC-style programming language, entered through menus rather than typed as plain text. It is not Python or TI-BASIC, though the ideas are similar.
Can I share programs with friends?
Yes, by transferring with the official cable and software, or by having them retype the listing. Do not install programs from unofficial sources — treat them like any unknown file.
Will a reset delete my games?
Yes. A full reset or memory clear removes user programs. Back them up to a computer or write them down before resetting.
Why does my game scroll off the screen?
Because each print adds a new line. Clear the text screen at the start of each loop, or use Locate to draw at fixed positions.