Skip to content

leslieyip02/10946

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

10946

2048 but it's the Fibonacci Sequence

Description

10946 is a recreation of the popular game, 2048. In the original game, players can swipe on the screen to combine equal numbers in a particular direction, with the goal of reaching 2048. In my adaptation, the game follows the logic of the Fibonacci sequence, so only numbers that are adjacent on the sequence can be merged. Despite the name of the game, the game can continue until no more valid moves are available.

This project was inspired by Daniel Shiffman's project. I followed his video tutorial, and made the following changes:

  • Refactored the code to make it more object-oriented
  • Added animations
  • Changed the game logic such that boxes can only be merged when they are adjacent Fibonacci numbers
  • Added the option to undo and restart

Reference

https://github.com/CodingTrain/website/tree/main/CodingChallenges/CC_094_2048/P5

https://thecodingtrain.com/CodingChallenges/094.1-2048.html

https://youtu.be/JSn-DJU8qf0 (1st video in the tutorial series)

About

2048 but it's the Fibonacci Sequence

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published