Live: will automatically execute upon every character typed (warning:
could result in issues if you have intensive or partially-completed code
that results in an infinite loop)
Exited code editor: will automatically execute code when the code editor
loses
focus - i.e. when you click outside of the code editor
Run on click: code will only be executed when you click the triangular
run/play
button
File Manager
Search & browse files easily
Pseudocode
Write and run pseudocode
Java
See a Java equivalent to your pseudocode program
Note: the site doesn't allow executing Java. An IDE like IntelliJ will provide an easy installation of the JDK and is recommended for running Java locally
Python
See a Python equivalent to your pseudocode program
Note: the site doesn't allow executing Python. An IDE like PyCharm will provide an easy installation of the Python interpreter and is recommended for running Python locally
Visual Basic
See a Visual Basic (VB) equivalent to your pseudocode program
Note: the site doesn't allow executing Visual Basic. An IDE like Visual Studio will provide an easy installation of the Visual Studio compiler and is recommended for running Visual Basic locally
New Program
Choose from a number of pre-made programs or create your own
Modifying a pre-made program will automatically create a new program, ensuring the
original & modified version are available
Create Trace Table
Automatically create trace tables for your code
Can use the BREAKPOINT keyword to add breakpoints at specific parts of your program
Use TRACE_NEXT_ROW to force new row to be created in trace table
Autoformat Code
Toggle original/formatted code
Pretty-printing/auto-formatting code will insert new lines, indentation and apply consistent styling rules. If enabled, pretty-printing will also occur each time you run your program
You can even try writing your entire program on one line...and it should still run and be formatted correctly :)
Note: code may be re-ordered (e.g. all declarations moved to the top) due to the way the site works
Tested and works for all demo programs - please contact me if this breaks any of your working code!
The site aims to enforce the statically-typed nature of pseudocode - i.e. assigning a STRING to
an
INTEGER variable should be forbidden. Some combinations are allowed, however - such as assigning
a
CHAR to a STRING or an INTEGER to a REAL. Other additional checks to ensure valid pseudocode are
also in place
The site has been well-tested and there aren't any bugs we are aware of, however, if you believe
the
site is incorrectly giving you an error & preventing your code from running, you can disable the
error-checking
Note that it is not possible to disable fatal error messages such as syntax errors, runtime
errors
etc
Subroutine Signature Hints
If enabled, the following information will be shown:
Keyword/Identifier/Module Name Suggestions
Subroutine parameters & types
Return types
Subroutine descriptions
Examples
Switch Program Shortcuts
Choose whether CTRL + SHIFT + LEFT/RIGHT should navigate to the previous program - can be
disabled to prevent accidental triggering
Toggle Keyboard Shortcuts
Enable or disable this website's additional keyboard shortcuts (switch program, change font size,
code execution etc) - note: standard editor & browser shortcuts will still apply
Use Assignment Arrow
Will cause "<-" to be replaced with the Unicode "β" symbol as the user is typing - can also use CTRL + SHIFT + < to insert this symbol
Allow Array Multi-Assignment
If enabled, you won't get warnings for assigning all values to an array in one statement - e.g. myArray <-- [1, 2, 3]
Allow LENGTH() for Arrays
Turning this on will disable the warning message if using the LENGTH function to get the number of elements in an array
Require Variable Initialisation
If enabled, you will get warnings if trying to access uninitialised variables
Code Snippets
These are pre-written code templates - for example, if you type in "DECLARE" in the code editor, you will see options to declare single variables, 1 & 2D arrays - you can disable this option
Show Toolbar Program Browser
If enabled, will show the program browser in the toolbar even if the sidebar file browser is open
Show Welcome Message
Toggle the welcome message/popup in the bottom right corner from showing
Wait for Tips
Will show the loading screen until at least the tip (hint) has been displayed, even if the site is fully loaded. Disabling this can hence make the editor screen appear faster, if the page is ready
Max Execution Time
To prevent infinite loops resulting in the page becoming unresponsive, code will automatically
terminate if this value (in seconds) is exceeded
If you have a legitimate long-running program, you can obviously set this to a high value -
alternatively, setting to -1 will disable this check
{"0":"Algorithms","1":"Selection","2":"Iteration","3":"Arrays","4":"Records","5":"ENUMs","6":"Custom Modules","7":"Files","8":"Object-Oriented Programming","9":"Abstract Data Types","10":"Sets","11":"Pointers","12":"Recursion","13":"Exam Questions","14":"Games","15":"Mathematics","16":"Art","17":"Utilities","18":"Other"}
Welcome to Pseudocode Pro
This site was developed to solve the problems of students either being completely stuck with pseudocode,
or attempting a solution, but having no way of actually validating if it would work (other than a manual
trace table). This site supports the entire Cambridge IGCSE (0478), O-Level (2210) and 9618 A-Level pseudocode
specifications from the guide/syllabus, with extension modules supporting sound, canvas, events, custom html etc
Below are lists of both the currently support pseudocode and general website features:
Additional coding challenges (I will create 2 per day, will have 500 in total eventually)
Starter code & implementation of pre-defined modules for IGCSE/O-Level/A-Level past papers, so
students can write and test their solutions directly, as they would in the exam
Those last 2 features are currently in progress, so an extra 3 months free
will be given to anyone who buys a license now to acknowledge this
For any issues, feature requests, comments etc, you can contact me
Token List
Work in progress: some buttons currently don't work...just select "All"
Token
Description
Example
Parameters
Thanks for using the site - I hope you enjoy it and if you do, it would mean a lot if you could share it with your friends too :)
Trace Table β₯
New Row
Module Call
Will start a new line when entering a new module - e.g.
PROCEDURE a()
//new line in trace table
...
ENDPROCEDURE
After Parameters
Will start a new line after parameters have had their values traced
PROCEDURE a(b : INTEGER)
//b's value is traced
//new line in trace table
...
ENDPROCEDURE
Loop Iteration
Will start a new line upon each iteration of a loop
REPEAT
//new line in trace table
...
UNTIL index = 10
Pre Loop
Will start a new line before a loop has started
//new line in trace table
REPEAT
...
UNTIL index = 10
Post Loop
Will start a new line after a loop has ended
REPEAT
...
UNTIL index = 10
//new line in trace table
If Statement
Will start a new line inside an IF or ELSE condition
IF a > b THEN
//new line in trace table
ELSE index = 10
//new line in trace table
ENDIF
Left to Right
Many suggest that trace tables should be read left-to-right, top to bottom. Hence, if a value on the current row is to be updated, but a value in a column further right on the same row has already been updated, a new row should be started
If we have the column order a, b and the following assignments...
b <-- 1
a <-- 2
b <-- 3
Then the following trace table should be created (note how the assignment to 'a' has to start a new line, since we have already assigned to a variable in a column to the right ('b')
a
b
1
2
3
Extra Options
Show Duplicates
Usually, the same value being assigned to a variable that it already contains won't be shown on a trace table - by default, it's shown by cells with a black/grey striped background. Enable this option if you'd like the value to be shown instead
a <-- 111
a <-- 111
Show Line Numbers
Show the line numbers in the cell where the value was updated - rather than having to hover your mouse over that cell
Copy Rich Text TableDownload CSVRun Again
Trace All
Trace all variables, even if its order not explicitly specified in the box to the left
Hover or click to show help
Trace table only generated when this dialog is open
Specify variables & order to trace above - default is all, in order they are declared
Hovering your mouse over a cell will display the line number this value was assigned
Use BREAKPOINT keyword to pause execution at specific point
Use TRACE_NEXT_ROW to force creation of a new row at specific point
Grey/black diagonally-shaded cells indicate the value assigned is unchanged
Work in progress. Currently buggy for records, classes, sets etc - will be fixed soon :)
Breakpoint Active - Click/ENTER to Resume
Re-run program for changes to take effect
Program Tokens β₯
Note: tokens were generated via a series of regex rules
Type
Value
Line
Char
Abstract Syntax Tree β₯
Flowchart β₯
Loading... :)
{"c":"\/\/ * Code Author: SharpPencil\n\/\/ * Date: 2026\/04\/07\n\/\/ * Description: The a part of a text based adventure game. (5 parts total)\n\/\/ * Categories: \n\nPROCEDURE RightPath()\r\n\tOUTPUT \"You head down the right path. You squint as the sewer brightens the deeper you go. Eventually, you end up at the end of the sewers. It's strangely cut off abruptly into the butterfly kingdom itself. Bracing yourself, you peer inside. The kingdom is brightly lit. Mini houses built everywhere, and flowers as far as the eye can see. Butterflies fly around, playing with each other, somehow playing catch, football and even chess. Other butterflies just levitate in peace, smelling the flowers and melting into the relaxing atmosphere. Maybe they aren't that different after all? The average lifespan is just around a month. The ones that killed your kingdom, may not even be remembered now.\r\n 1. The butterflies are not at fault\r\n 2. Revenge.\"\r\n\tCALL Decision()\r\n\r\n\tIF Choice = 1 THEN\r\n\t\tOUTPUT \"You sigh, throwing your blade down onto the sewer floor. These butterflies shouldn't be held accountable for their ancestors. They probably don't even know what happened. You exit the sewers, and fly off into the night- proud that you made the decision your family would have wanted.\r\n TRUE WIN!\"\r\n\t\tCALL GameEnd()\r\n\tENDIF\r\n\r\n\tIF Choice = 2 THEN\r\n\t\tOUTPUT \"You grip your blade harder. How dare they live so peacefully after everything they did to your people? It didn't matter whether or not they supported it- or even if they knew what happened. You dash straight at the castle, sending bursts of wind down onto the ground, allerting the butterflies. They shoot arrows at you, hitting you for:\"\r\n\t\tHP \u2190 HP - (20 - Defence)\r\n\t\tOUTPUT \"You grunt as the arrows sink into you. Ignoring the pain, you continue your flight, until you land on the castle itself. You sense a looming presence behind you before you can even catch your breath. A large butterfly, flapping its wings slowly descends to your level dual wielding a sword and a mace. It somehow adjusts the crown on its head, before approaching you slowly.\"\r\n\tENDIF\r\n\r\n\tREPEAT\r\n\t\tCALL ButterflyBossfight()\r\n\tUNTIL HP <= 0 OR BHP <= 0\r\n\r\n\tIF BHP <= 0 THEN\r\n\t\tOUTPUT \"You take a deep breath. The king has been slain. Your people have been avenged. You sit quietly in the bloodfilled castle. Was this worth it? More blood had been spilled. Maybe innocent blood, unaware of what happened. Is this what your people would have wanted? You sit there, pondering the question. (WIN)\"\r\n\tELSE \r\n\t\tOUTPUT \"GAME OVER.\"\r\n\tENDIF\r\n\tCALL GameEnd()\r\nENDPROCEDURE\r\n\r\nPROCEDURE LeftPath()\r\n\tOUTPUT \"You head down the left path. Warnings are carved into the walls: 'TURN BACK!' 'DO NOT ENTER!'. Unafraid and happy to disobey the butterflies, you continue. A door lies at the end of the dark tunnel, what seems to be a math problem written on it: ( 6 \/ 2 (1+2) ). You raise your eyebrows in confusion. It is a well known fact that butterflies cannot do math. You decide to give it a shot\"\r\n\tINPUT Answer\r\n\r\n\tIF Answer <> 9 THEN\r\n\t\tOUTPUT \"Unable to figure it out yourself, you go back down the tunnel\"\r\n\t\tCALL RightPath()\r\n\tENDIF\r\n\r\n\tIF Answer = 9 THEN\r\n\t\tOUTPUT \"As you write it down on the door, it creaks open. You enter. You smell what seems like a rotting corpse as you glide down the set of stairs. You land softly. What could the butterflies be trying to keep locked in here? You sense movement in the pitch black room. You carefully move forward, and instantly the door shuts behind you. You turn around, to see a 'butterfly', it's body almost completely decayed. Through its rotten eyes, you see familiarity. The eyes of the one that killed your people. He somehow picks up a sword and a mace, the same ones that killed your parents.\"\r\n\tENDIF\r\n\r\n\tREPEAT\r\n\t\tCALL ButterflyBossfight()\r\n\tUNTIL HP <= 0 OR BHP <= 0\r\n\r\n\tIF BHP <= 0 THEN\r\n\t\tOUTPUT \"You take a deep breath. You sit in the bloodfilled room, and smile. The true murderer has been slain. No innocents had to die. You pick yourself up, and exit the sewers, flying off into the night. (TRUE WIN)\"\r\n\tELSE \r\n\t\tOUTPUT \"GAME OVER.\"\r\n\tENDIF\r\n\tCALL GameEnd()\r\nENDPROCEDURE\r\n\r\nPROCEDURE Sewer()\r\n\tOUTPUT \"You fly down to the sewer grate at the bottom of the castle walls. Be sneaky, that is what your mother Beakonce taught you.\"\r\n\r\n\tIF Strength < 4 THEN\r\n\t\tOUTPUT \"You bite down on the bars, and almost break your beak. You try again, to no avail. Disappointed, you fly back up, and decide to follow your father's advice.\"\r\n\t\tCALL FrontGate()\r\n\r\n\tELSE \r\n\t\tOUTPUT \"The brittle bars break easily under your beak. You jump through, landing in a vat of sticky green fluid. Flapping your wings, you levitate over the substance, deeper into the dark sewers. You encounter 2 paths. Which path do you take?\r\n 1. Right\r\n 2. Left\"\r\n\tENDIF\r\n\tCALL Decision()\r\n\r\n\tIF Choice = 1 THEN\r\n\t\tCALL RightPath()\r\n\tENDIF\r\n\r\n\tIF Choice = 2 THEN\r\n\t\tCALL LeftPath()\r\n\tENDIF\r\nENDPROCEDURE\r\n\r\nStatPoints \u2190 15\r\nSwingC \u2190 10\r\nPeckC \u2190 15\r\nBoomerangBladeC \u2190 3\r\nChargeC \u2190 3\r\nHealC \u2190 5\r\nHP \u2190 350\r\nBHP \u2190 750\r\nDMG \u2190 0\r\nBDMG \u2190 0","t":"The Bird Knight (4)"}