When you get tired of following programming tutorials, break away from them to try some of these projects. These projects can be done with any scripting language. The projects get more difficult further down the list. You can use this site to write your code: Online IDEs for various languages.
Other Code Projects
- Rock, Paper, Scissors game.
- Ask the user to enter their choice.
- Have the computer randomly choose one.
- Calculate who won.
- Output both choices and the result.
- Requires knowledge of variables and boolean (if) statements.
- Chat bot.
- Get the computer to hold a conversation with the user.
- Have the computer ask the user a number of questions.
- Have the computer respond in various ways to the user responses.
- Mad Libs game
- Ask the user to enter a variety of nouns, verbs, adverbs, etc.
- Have a paragraph story pre-written that you then add the user’s choices into.
- Requires knowledge of variables and boolean (if) statements.
- Area Calculator
- Ask the user to enter a shape.
- Calculate the area and circumference of the shape.
- Use functions to calculate the information for each shape.
- To make it harder, make the shapes 3D and calculate the volume.
- Requires knowledge of variables, boolean statements, and methods/functions.
- Simple Battleship game
- Create a 5 x 5 board.
- Place a ship of size one at a board coordinate.
- Give the user 10 tries to guess the location of the ship.
- Requires knowledge of arrays and loops.
- Advanced Battleship game.
- Make the ships variable sized.
- Make multiple ships.
- Add AI, get the computer to play (this is tough).
- Text-Based Adventure Game
- Make a simple text-based adventure game where the user types what they want to do.
- Start with an adventure that has at least 20 different options for the user to explore.
- Add extra features like combat, health, inventory, maps, saving, and other options.
- Tic-Tac-Toe
- Create a two player, text-based Tic-Tac-Toe game.
- Use a 3 x 3 array to keep track of player choices.
- Display the choices with just text ( X, O, and – ).
- Determine win, loss and ties. This is the hard part.
- For a real challenge, create AI. Get the computer to play.
- Practice with Classes
- Create your own Player or Enemy Class code that you might use for a game.
- Create a class that has various attributes (name, health, type, etc.)
- Have a main program create various Players or Enemies with different attributes.
- Create a Bank Account program.
- Create a Bank Account class with
- variables like name, id, amount, etc.
- setter, getter, constructor, deposit, and withdraw methods.
- Create a main program that can create and modify bank accounts.
- Create a Bank Account class with
- Create your own Player or Enemy Class code that you might use for a game.