Commit Graph

262 Commits

Author SHA1 Message Date
696273367a 2019: update Makefile from day 4 2022-09-21 09:27:33 +02:00
f7336d6814 when rule 4 is violated, skip to next possible number 2022-09-20 22:01:43 +02:00
a461bf2842 typo 2022-09-20 20:02:23 +02:00
0ce9f9aafa Add --show-error-list=yes to valgrind options. Invalid opcode again!
To run "make memcheck", uncomment Makefile line 36 (-m no-tbm).
Without this, I get :
vex amd64->IR: unhandled instruction bytes: 0x8F 0xEA 0xF8 0x10 0xFF 0x23 0x1D 0x0 0x0 0x89
vex amd64->IR:   REX=0 REX.W=0 REX.R=0 REX.X=0 REX.B=0
vex amd64->IR:   VEX=0 VEX.L=0 VEX.nVVVV=0x0 ESC=NONE
vex amd64->IR:   PFX.66=0 PFX.F2=0 PFX.F3=0
==888233== valgrind: Unrecognised instruction at address 0x109336.
2022-09-20 19:58:30 +02:00
ea530e7d8d 2019 day 4, minor is_valid() simplification 2022-09-20 19:57:27 +02:00
2694f8d4d0 2019 day 4, parts 1 and 2 2022-09-20 19:22:13 +02:00
f9a80239b4 2019 day 4 init 2022-09-20 13:55:15 +02:00
ffb27a8338 2019 day 3 cleanup 2022-09-20 13:39:08 +02:00
dbfc914efb test newline in org paragraph 2022-09-19 20:15:30 +02:00
c4772bb416 typo in day03 README.org 2022-09-19 20:05:13 +02:00
bc8dac927a fix broken Makefile for valgrind + fix day02 memory leak. 2022-09-19 20:01:11 +02:00
42d1f7bf48 README.org cleanup, update RESULTS.txt, build README.org with Makefile 2022-09-19 19:59:26 +02:00
828d13f967 2019 day 3 + add br.h for some useful stuff (min, max... macros) 2022-09-19 19:35:37 +02:00
b67600957e 2019 day3 init 2022-09-18 18:04:21 +02:00
0d7424d9c6 2019 day 2 2022-09-18 17:30:46 +02:00
d9b0f7b7c4 2019 day 1 2022-09-18 14:04:30 +02:00
378df8cf5b init 2019 2022-09-18 13:35:09 +02:00
c56f9ca769 update day25 Makefile 2022-09-18 13:23:53 +02:00
37a38bdc4a day23: delete dead code, rename structs/macros, use native rand() 2022-09-15 09:42:27 +02:00
e0720bdd0a includes: update from tools repo 2022-09-14 20:05:47 +02:00
2fda973085 day 25: fic Makefile for only one part 2022-09-14 20:04:07 +02:00
79428d6192 day23: final version (could add priority queue to improve further ?) 2022-09-14 20:02:54 +02:00
ebb8a0d738 day 25: memory cleanup, simplify puzzle input read 2022-09-14 19:56:33 +02:00
721f9da54e day 25: code cleanup 2022-09-08 21:08:49 +02:00
5da5adb8bf day 25: simplify code. 2022-09-08 16:11:29 +02:00
adb8fc6b95 day 25, first version (need lots of cleaning) 2022-09-07 22:14:45 +02:00
4dbcc30dc3 first try of A* move sorting 2022-04-05 13:20:13 +02:00
49bbc2372c changes in newmove() & hash() to avoid code duplication 2022-04-04 16:46:51 +02:00
aa0f475b17 messy/bloaty/slow version working for example & input 2022-04-02 17:35:39 +02:00
9a0d7a2ca7 temp save to use on laptop 2022-04-01 06:37:55 +02:00
ea429a99a7 Day 23: zobrist hash, still wrong collisions (works only without hash) 2022-03-30 21:39:16 +02:00
4fa4a5d366 day23: 1st "running" version, which does not work (maybe hash issue) 2022-03-30 13:20:11 +02:00
e25d79e95b bits.c: added 32 bits versions (untested) 2022-03-30 13:19:38 +02:00
4be7c56b88 day 24 parts 1 & 2 (forgot source) 2022-03-30 13:19:02 +02:00
c78a3e7285 Day 23 part 2 README (part 1 done with pen/paper) 2022-03-26 16:49:27 +01:00
f807acc983 day 24 2022-03-25 16:08:54 +01:00
b64bc6c1d5 update library from mainstream, especially {READ,WRITE}_ONCE 2022-03-24 18:42:35 +01:00
6aa605a0de init days{24,25} 2022-03-24 18:41:28 +01:00
1f835c10c5 new list.h with {READ,WRITE}_ONCE 2022-03-18 17:25:39 +01:00
d4ec54ed5b add #error for word size != 64 2022-02-07 18:18:11 +01:00
4ac39e5a69 day 23: early code for bitboard approach. 2022-01-29 21:00:54 +01:00
b8e61bcacb day 22: typo in day # comment 2022-01-29 21:00:31 +01:00
efb25f363f bugfix bit_for_each64_2 2022-01-29 15:47:38 +01:00
1e8556b5d5 day 23 init 2022-01-28 19:37:23 +01:00
5c392199fe Day 22 : clean code, more comments. 2022-01-28 17:07:44 +01:00
6b753e9d6c day 22: working part 2. Two days lost due to int overflow :-( 2022-01-28 16:08:05 +01:00
35053f3c8c day 22: change part1 to match part2 changes in input read. 2022-01-27 19:10:36 +01:00
97411fbb08 day 22 part 1 (basic/stupid algorithm, not suitable for part 2) 2022-01-27 16:24:43 +01:00
ecbeffc3d9 Day 22 init 2022-01-25 13:47:18 +01:00
7082ce3565 day 21: fix memory leaks 2022-01-25 13:46:48 +01:00