Game on Fortran using Ncurses

Fortran game

The BlockTran tetromino falling block Fortran game exhibits several types of best practices for modern Fortran design with user keyboard input and animated text output. Ncurses is used to handle the screen drawing via iso_c_binding from Fortran.

Inspired by the demo Fortran program use of Ncurses, we created the game in object-oriented modern Fortran 2018.

Ncurses redraws the screen on each necessary update (pseudo-interrupt driven). CPU load is very low.

It would be straightforward to add color, sound and more.