Skip to content
This repository has been archived by the owner on Dec 2, 2023. It is now read-only.
/ ai-flappy-bird Public archive

A terminal-based ascii flappy bird game with AI.

License

Notifications You must be signed in to change notification settings

creme332/ai-flappy-bird

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASCII Flappy Bird 🐦

A terminal-based ascii flappy bird game with AI.

GIF showing single player mode gameplay

Installation

🔴 Note: This game will work only on a Windows system because of some Windows-specific libraries used.

  1. Download the project using Git or otherwise.
  2. Run birdgame.cpp using a compiler that supports C++14.

Usage

  • On startup screen, choose an option by pressing 1 or 2 or 3.
  • When in single player mode, press spacebar to jump.
  • In AI mode you can only watch the AI play: GIF showing AI gameplay

How it works

image

  • At any time, there are at most 2 pipes on screen.
  • The bird only moves vertically while the pipes move horizontally to the left.
  • pipe[0] always denotes the index of the pipe closest to the bird. Once this pipe is behind the bird, it is removed from screen and a new one is created.

Inspirations

Future work

  • Add flapping wings to bird.
  • Add different difficulty modes (vary gap between pipes, speed of bird, ...)

About

A terminal-based ascii flappy bird game with AI.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages