Skip to content

Effective Tetris implementation using bitboards and AVX-2 SIMD instructions

License

Notifications You must be signed in to change notification settings

lightln2/Tetriss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Effective Tetris implelentation using Bitboards

  • Console-based implementation of game of Tetris using 256-bit bitboards and AVX-2 SIMD instructions
  • Tetris solver using greedy in-depth search processing up to 15 million moves per second
  • Replay scenarios found by the solver

Build

on Windows, open solution with Visual Studio 2019 or run build.cmd on other systems, run dotnet build -c Release -r [your-system]

Run

on Windows:

  • Start the game in the console:
    tetriss.exe
  • Start tetris solver with a specified depth. Found scenarios will be printed out to the console:
    tetriss.exe -solve 1000
  • Replay scenario found by the solver:
    tetriss.exe -replay "0:0 0:0 1:2 0:0 2:-3 3:-4 0:4"

on other systems: run dotnet run -c Release -p Tetriss [arguments]

License

About

Effective Tetris implementation using bitboards and AVX-2 SIMD instructions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published