Skip to content

Instantly share code, notes, and snippets.

@gulrak
gulrak / 1-chip8-logo.log
Last active December 30, 2023 13:18
Trace logs with screen dumps after each draw from tests of Timendus CHIP-8 test suite v4.1
INFO: FILEIO: [c8testsuite4.1/1-chip8-logo.ch8] File loaded successfully
0/0: V0:00 V1:00 V2:00 V3:00 V4:00 V5:00 V6:00 V7:00 V8:00 V9:00 VA:00 VB:00 VC:00 VD:00 VE:00 VF:00 I:0000 SP:0 PC:0200 O:00e0
1/1: V0:00 V1:00 V2:00 V3:00 V4:00 V5:00 V6:00 V7:00 V8:00 V9:00 VA:00 VB:00 VC:00 VD:00 VE:00 VF:00 I:0000 SP:0 PC:0202 O:6101
2/2: V0:00 V1:01 V2:00 V3:00 V4:00 V5:00 V6:00 V7:00 V8:00 V9:00 VA:00 VB:00 VC:00 VD:00 VE:00 VF:00 I:0000 SP:0 PC:0204 O:6008
3/3: V0:08 V1:01 V2:00 V3:00 V4:00 V5:00 V6:00 V7:00 V8:00 V9:00 VA:00 VB:00 VC:00 VD:00 VE:00 VF:00 I:0000 SP:0 PC:0206 O:a250
4/4: V0:08 V1:01 V2:00 V3:00 V4:00 V5:00 V6:00 V7:00 V8:00 V9:00 VA:00 VB:00 VC:00 VD:00 VE:00 VF:00 I:0250 SP:0 PC:0208 O:d01f
................................................................
............####................................................
..............#.................................................
..............#.................................................
@gulrak
gulrak / database.hpp
Created December 27, 2023 12:31
CHIP-8 program database helper for C++17, needs nlohmann::json
//---------------------------------------------------------------------------------------
// src/c8db/database.hpp
//---------------------------------------------------------------------------------------
//
// Copyright (c) 2023, Steffen Schümann <s.schuemann@pobox.com>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@gulrak
gulrak / tic-tac-toe.c
Created July 6, 2022 15:34
A self-playing Tic-Tac-Toe example for ray lib in C
//-----------------------------------------------------------------------------
// Self playing Tic-Tac-Toe example with raylib :-)
//-----------------------------------------------------------------------------
// LICENSE: zlib/libpng
//
// Copyright (c) 2022 Steffen Schümann (@gulrak)
//
// This software is provided "as-is", without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.