CodeJo — New — Help — Examples — Challenges — Commands — About

CodeJo Examples

From the Terminal

The quickest way to see and try the examples is from the project mode terminal interface.

$$$ catalog
OR
$$$ cat
will print a list of available examples.

The first three letters (inside the square brackets) is the Canvas type being used by the example. After that is the project name.

When you see a project you want to try:

$$$ run <project name>
will run the project.

For example, if you want to try the snake game project listed as
[grd] snake
at the $$$ prompt type:

run snake
and press [Enter]

Examples, Listed

Click on the name of the example to run it!

algegraph

Uses the Turtle Canvas to plot algebraic equations. Operates in either rectangular (Cartesian) (x-y) coordinates, or a polar (r-θ) coordinates.

See the eqXr (rectangular) and eqXp (polar) functions for examples. Write your own functions, and plot them using the show(<eq>) function.

beepboop

Some CodeJo sound experiments. This example includes an onscreen musical keyboard that you can play using your computer keyboard.

Hold down the [Shift] key to activate the adjustment panel. Keep holding and press the indicated keys to make changes.

centris

Like Tetris, except the blocks always fall toward the center of the screen.

W, A, S, D keys will steer the blocks up, left, down, and right.

Q and E will rotate the block counter-clockwise and clockwise.

[Spacebar] will drop the block in the direction it is falling. Make sure you hit something in the middle!

The numbers in the upper left corner indicate the current score, and the highest score ever achieved.

duet

This is a program to help learn and understand the cards that come with the boardgame Codenames: Duet.

See, we were playing once, and we were sitting at the table at a weird angle, and so I had the cards standing up on end instead of the normal wide-way. I realized about halfway through the game that it was probably messing up the distribution of agents, assassins, and bystanders, but I wasn't sure.

Now we know. It was definitely messing things up. Play the normal way!

Although, if you want to play with the cards the long way, there is a method included for generating new cards in either format. (Press R when your in the format you want to use). The cards are not quite right (it allows assassins to be right next to each other for one thing) but with a bit of work it could be useful!

enigmish

This is my implementation of the World War II-era Enigma Machine encryption.

Type in your message, and you can watch how the signal travels through the "rotors" (the vertical columns of letters) to generate the cyphertext.

Send secret messages to your friends! (As long as you don't mind Alan Turing -- or pretty much anyone at this point -- decrypting them!)

explore

Ultima was one of my favorite games when growing up. I knew I wanted CodeJo to be able to handle full-canvas scrolling like this, and this example tests those capabilities.

jordle

Yet another Wordle clone, plus some wordle tools, if you want.

knights

Implements the "knight move" algorithms explored on Numberphile and Numberphile2.

All of the different pieces from the video are available, plus a few extras, plus an easy way to create your own pieces.

Try random_set() or runner() or runner('AnBxD')

Also, crank up the resolution with hgr() or xgr()

life

Conway's Game of Life.

run() to click out a pattern on the left, then press [Enter] to start it running.

petri() will start a randomized pattern.

dishes() will set up a selection of petri patterns.

mandelbrot

Fractal browser. Mandelbrot set, Julia set, and Newton's fractal.

maze

Maze builder, runner, solver.

mines

Classic minesweeper.

morse

I started this one to teach myself Morse Code. Rough, and not very far along yet.

Might want to turn your sound down a bit.

polymove

Like the old classic bouncing triangles screensaver, with more shape flexibility.

Scratchpad-doc

The Document Canvas scratchpad. If you're not already in doc mode, you can also get here with the doc() command.

Scratchpad-fab

The Fabric Canvas scratchpad. If you're not already in fab mode, you can also get here with the fab() command.

Scratchpad-grd

The Grid Canvas scratchpad. If you're not already in grd mode, you can also get here with the grd() command.

Scratchpad-trt

The Turtle Canvas scratchpad. If you're not already in trt mode, you can also get here with the trt() command.

Scratchpad-web

The Web Canvas scratchpad. If you're not already in web mode, you can also get here with the web() command.

shipshape

Looks like asteroids. Plays like asteroids. Probably should have called this one asteroids.

sliders

One of those puzzles with the sliding pieces where they're all shuffled up and one is missing. Slide the pieces around until they're back in the proper order.

snake

The first CodeJo example ever created! The classic snake game.

Plenty of room here for improvements if you want to try out your coding skills!

sokoban

Another classic sliding-piece puzzle game. In this one you can only move the red boxes by pushing them with the green circle. Push all of the red boxes onto blue boxes to complete a level.

This version also implements the drag-and-drop shortcut for advanced players. A piece can be moved to any possible destination, as long as it can legally be moved there without needing to move any other pieces. Try it!

test-doc

Tests for the Document Canvas. These tests should run properly before any release!

test-fab

Tests for the Fabric Canvas. These tests should run properly before any release!

This project also houses the "swatcher" if you want to see named colors and color families, as well as speedtest4 and some simple mouse and animation examples.

test-grd

Tests for the Grid Canvas. These tests should run properly before any release!

This project has speedtest and speedtest2, to see how your system is performing running CodeJo, as well as some simple examples using the mouse and some Grid-specific features like copying and moving large sections of the canvas.

test-trt

Very basic turtle graphics implementation. Still needs a lot of work!

test-web

Tests for the Web Canvas. These tests should run properly before any release!

This project has speedtest3, as well as a simple mouse example.

The Web Canvas is probably the least complete of the canvases included with CodeJo.