Tower of Hanoi - the CLI game

Overview

Tower of Hanoi - the CLI game

You can play this game online on replit.

Objective

Move all the discs from tower 1 to tower 3.

Game dynamics

There are three towers and five discs. Each disc has a size, ranging from 1 to \5. A smaller disc can stand on a larger disc, but not the other way around. That means you can place, e.g., a disc of size 1 on top of a disc of size 3, but not a disc of size 5 on top of a disc of size 2. You have to move all five discs on tower 1 to tower 3, using tower 2 as an intermediate to move them.

How to play

You'll be prompted to select a tower to take a disc from, or drop a disc onto. As you press any of 1, 2, or 3, your virtual hand will grab a disc from, or drop one on the selected tower. The game ends when all discs are on the third tower.

In case you want to quit, q is the input of choice.

Background

TODO: tell the whys behind this repo.

You might also like...
A refreshingly simple data-driven game engine built in Rust

What is Bevy? Bevy is a refreshingly simple data-driven game engine built in Rust. It is free and open-source forever! WARNING Bevy is still in the ve

Data-oriented and data-driven game engine written in Rust
Data-oriented and data-driven game engine written in Rust

What is Amethyst? Amethyst is a data-driven and data-oriented game engine aiming to be fast and as configurable as possible. Principles These principl

Rust library to create a Good Game Easily

ggez What is this? ggez is a Rust library to create a Good Game Easily. The current version is 0.6.0-rc0. This is a RELEASE CANDIDATE version, which m

Rate my game setup ๐Ÿ˜œ
Rate my game setup ๐Ÿ˜œ

minesweeper.rs Rate my game setup ๐Ÿ˜œ

Minesweeper game developed with Rust, WebAssembly (Wasm), and Canvas
Minesweeper game developed with Rust, WebAssembly (Wasm), and Canvas

๐Ÿ‘‰ click here to play the game ๐Ÿ‘ˆ Minesweeper game Revealing all the cells without hitting the mines is the task. Each number in the cell denotes how

Snake Game in rust for the web

About This template shows how to create a web app using Yew and wasm-pack. ๐Ÿšด Usage ๐Ÿ› ๏ธ Build When building for the first time, ensure to install depe

Minesweeper game where you only lose if the move is certainly wrong.
Minesweeper game where you only lose if the move is certainly wrong.

Non-deterministic Minesweeper Tired of having to guess in a game of minesweeper? Worry no more! This is a variation of Minesweeper game where you only

Octo3D - A 3D Game Engine for the Web!
Octo3D - A 3D Game Engine for the Web!

Octo3D is a WebGPU based 3D Game Development Engine for the web. It provides various functions and utilities to improve the game development experience on the web while leveraging technologies such as TypeScript and WASM (via Rust!).

A minesweeper game with a terminal and graphical interface
A minesweeper game with a terminal and graphical interface

Mine A minesweeper game with a terminal and graphical interface created by Koen Westendorp. Installation Go ahead and try out for yourself! :) git clo

Owner
Fabricio Werneck
Ti Ne Si Fe
Fabricio Werneck
The video game for Fonts of Power. A tabletop roleplaying game made in Rust with Bevy!

The code and rules for Fonts of Power, a tactical TTRPG / video game about exploring magical places. You can follow its development in our Discord ser

null 25 Dec 23, 2022
Red Light, Green Light is a traditional Korean children's game, popularised by the Squid Game TV series.

Red Light, Green Light Red Light, Green Light is a traditional Korean children's game, popularised by the Squid Game TV series. This project is the di

Cedric Chee 1 Jan 10, 2022
A game inspired by the classic atari game: demon attack

rusty_demon_attack A game inspired by the classic atari game: demon attack You can play the game in the web!

null 58 Jan 4, 2023
A work-in-progress, open-source, multi-player city simulation game.

Citybound is a city building game with a focus on realism, collaborative planning and simulation of microscopic details. It is independently developed

Citybound 7.2k Jan 3, 2023
A roguelike game in Rust

A fantasy deathcrawl in Rust Work in progress. To run, with Rust compiler and Cargo package manager installed: cargo run --release When building on W

Risto Saarelma 347 Nov 21, 2022
Extensible open world rogue like game with pixel art. Players can explore the wilderness and ruins.

Rusted Ruins Extensible open world rogue like game with pixel art. Players can explore the wilderness and ruins. This game is written in Rust. Screens

T. Okubo 427 Dec 13, 2022
๐Ÿ˜ โš”๏ธ๐Ÿ˜ˆ A minimalistic 2D turn-based tactical game in Rust

Zemeroth is a turn-based hexagonal tactical game written in Rust. Support: patreon.com/ozkriff News: @ozkriff on twitter | ozkriff.games | facebook |

Andrey Lesnikรณv 1.3k Jan 5, 2023
โฌก Zone of Control is a hexagonal turn-based strategy game written in Rust. [DISCONTINUED]

Zone of Control The project is discontinued Sorry, friends. ZoC is discontinued. See https://ozkriff.github.io/2017-08-17--devlog.html Downloads Preco

Andrey Lesnikรณv 354 Nov 14, 2022
This is a simple implementation of the classic snake game in rust

My snake game Looks like this. This is with Roboto Mono Nerd Font. If you use a different font it may look different or distorted. Install rust In ord

Konstantinos Kyriakou 16 Apr 4, 2021
The classic tetris game written in Rust using ncurses

tetris.rs This is the classic tetris game I wrote to have a bit of fun with Rust. Installation and playing cargo install --

null 71 Jul 25, 2022