#include "libepc.h" #include "tetris.h" /* ------------------------------------------------------------ */ /* Main program: Clear screen, hide cursor, initialize score, */ /* and start program. HandleObject returns TRUE when Tetris */ /* objects are piled up to high water row; main then buzzes and */ /* then enters an infinite loop. */ /* ------------------------------------------------------------ */ int main() { ClearScreen(NORMAL) ; SetCursorVisible(FALSE) ; PutUnsigned(0, 10, 4) ; for (;;) { KEYS *keys = GetKeys() ; if (HandleObject(keys)) { Tone(100) ; for (;;) ; } } return 0 ; }