https://github.com/adhami3310/987

2048 but fibonacci

https://github.com/adhami3310/987

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (7.4%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

2048 but fibonacci

Basic Info
  • Host: GitHub
  • Owner: adhami3310
  • Language: Python
  • Default Branch: main
  • Size: 79.1 KB
Statistics
  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme

README.md

987

Just like 2048, but with fibonacci numbers!

Deployed on https://nineeightseven-cyan-star.staging.reflexcorp.run/

Stack

Frontend and backend built with reflex. Animations are provided by reflex-motion which wraps Motion. Swipe gestures are provided by reflex-swipe which wraps react-swipeable.

Known Issues

Animations sometimes lag, refreshing should fix the issue.

Statistical Analysis

Since consequent numbers merge into each other, this game grows half the speed of 2048. To illustrate this, imagine what would be required to get 2048, we need 1024 to merge with another 1024, as such we need to create 1024 that is the result of merging two 512. As such, we need 1024, 512, 256, 128, 64, 32, 16, 8, 4, 2, and one additional 2 to make 2048, for a total of 11 blocks.

However, in 987, we can have 1 and 2 merge to become 3, and that can merge with 5, thus we don't actually need 3 to be present, as such, we only need every other value in the sequenece, essentially doubling how far we can go in the sequence.

It's also easier in nature, as failing the game requries having many of the same value, or two values of more than two apart to be all around the board. As such, this is a difficult criteria to reach compared to 2048.

Simple Solver

The code contains a simple search to find the best move (although disabled by default). Through a simple run we got it to achieve a score of 66,666. You can most likely build something better.

Owner

  • Name: Khaleel Al-Adhami
  • Login: adhami3310
  • Kind: user
  • Location: Cambridge, MA
  • Company: MIT

support my work on https://opencollective.com/beyond-expiry

GitHub Events

Total
  • Watch event: 5
  • Push event: 5
  • Create event: 2
Last Year
  • Watch event: 5
  • Push event: 5
  • Create event: 2

Issues and Pull Requests

Last synced: about 1 year ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Dependencies

poetry.lock pypi
  • alembic 1.14.0
  • annotated-types 0.7.0
  • anyio 4.6.2.post1
  • bidict 0.23.1
  • build 1.2.2.post1
  • certifi 2024.8.30
  • cffi 1.17.1
  • charset-normalizer 3.4.0
  • click 8.1.7
  • colorama 0.4.6
  • cryptography 43.0.3
  • distro 1.9.0
  • docutils 0.21.2
  • fastapi 0.115.5
  • greenlet 3.1.1
  • gunicorn 23.0.0
  • h11 0.14.0
  • httpcore 1.0.6
  • httpx 0.27.2
  • idna 3.10
  • importlib-metadata 8.5.0
  • jaraco-classes 3.4.0
  • jaraco-context 6.0.1
  • jaraco-functools 4.1.0
  • jeepney 0.8.0
  • jinja2 3.1.4
  • keyring 25.5.0
  • lazy-loader 0.4
  • mako 1.3.6
  • markdown-it-py 3.0.0
  • markupsafe 3.0.2
  • mdurl 0.1.2
  • more-itertools 10.5.0
  • nh3 0.2.18
  • packaging 24.2
  • pip 24.3.1
  • pipdeptree 2.16.2
  • pkginfo 1.10.0
  • platformdirs 4.3.6
  • psutil 6.1.0
  • pycparser 2.22
  • pydantic 2.9.2
  • pydantic-core 2.23.4
  • pygments 2.18.0
  • pyproject-hooks 1.2.0
  • python-dateutil 2.9.0.post0
  • python-engineio 4.10.1
  • python-multipart 0.0.17
  • python-socketio 5.11.4
  • pywin32-ctypes 0.2.3
  • readme-renderer 44.0
  • redis 5.2.0
  • reflex 0.6.5
  • reflex-chakra 0.6.2
  • reflex-global-hotkey 1.1.1
  • reflex-hosting-cli 0.1.15
  • reflex-motion 0.0.1
  • reflex-swipe 1.0.0
  • requests 2.32.3
  • requests-toolbelt 1.0.0
  • rfc3986 2.0.0
  • rich 13.9.4
  • secretstorage 3.3.3
  • setuptools 75.5.0
  • shellingham 1.5.4
  • simple-websocket 1.1.0
  • six 1.16.0
  • sniffio 1.3.1
  • sqlalchemy 2.0.36
  • sqlmodel 0.0.22
  • starlette 0.41.2
  • starlette-admin 0.14.1
  • tabulate 0.9.0
  • tomlkit 0.13.2
  • twine 5.1.1
  • typer 0.13.0
  • typing-extensions 4.12.2
  • urllib3 2.2.3
  • uvicorn 0.32.0
  • websockets 14.1
  • wheel 0.45.0
  • wrapt 1.16.0
  • wsproto 1.2.0
  • zipp 3.21.0
pyproject.toml pypi
requirements.txt pypi
  • reflex ==0.6.5
  • reflex-global-hotkey ==1.1.1
  • reflex-swipe ==1.0.0