This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import chalk | |
import os (sleep, write) | |
let words = slurp('/usr/share/dict/words').words().filter!(/^[a-z]{5}$/) | |
let alphabet = [chr(o) for o in ord('a')...ord('z')] | |
function putc(s) { | |
write(1, s) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "sdl_wrapper.hh" | |
#include <SDL2/SDL.h> | |
int main(int argc, char *argv[]) | |
{ | |
SDL::init(); | |
SDL_Event e; | |
bool quit{}; |