commit 617208416d1ee6c5dfd7359b382087f75a3db172 Author: Tristan Smith Date: Mon Nov 4 21:58:29 2024 -0500 first diff --git a/.zig-cache/h/b91e756a8aa133380cc48d10ae6a12df.txt b/.zig-cache/h/b91e756a8aa133380cc48d10ae6a12df.txt new file mode 100644 index 0000000..9faba1c --- /dev/null +++ b/.zig-cache/h/b91e756a8aa133380cc48d10ae6a12df.txt @@ -0,0 +1,152 @@ +0 +51912 2986477 1717700911000000000 d600a0ee5e0a696532bca2fbd40226c8 1 compiler/build_runner.zig +3831 3004577 1730774279473559116 f188383c3d5e2e23b12879cf63d4ffd6 0 /var/home/tristan/Documents/words/zig/chess/build.zig +103 0 0 35b10ba982858800c98ffbaad5536a86 2 o/a32fcfc0e475f08356ed8aef4020640b/dependencies.zig +7616 3002461 1717700911000000000 a112ef71b351e8f79f6f43c583ede25c 1 std/std.zig +23040 3002458 1717700911000000000 da66963546b611ee7750a27396b7d1ea 1 std/start.zig +115223 3002157 1717700911000000000 864599658ca312005d8d3860dcc5d44e 1 std/debug.zig +3028 3003642 1730773944850718791 274c62f9f3726389a4023cceb5215528 0 /var/home/tristan/.cache/zig/b/274c62f9f3726389a4023cceb5215528/builtin.zig +33165 3002006 1717700911000000000 f94156764e93e22ac481419ae3dcd7e2 1 std/builtin.zig +87972 3001962 1717700911000000000 2058e9176f2f8c413153da85bdefea9a 1 std/Target.zig +129328 3001984 1717700911000000000 aa1c9ead6b093aa4fc744cbaf6cdb147 1 std/Target/x86.zig +73503 3002278 1717700911000000000 4f495cdd87469544c122e37211fe3d16 1 std/math.zig +41362 3002349 1717700911000000000 222d7cb14bd7ca087b75cbc16cba6dda 1 std/meta.zig +11091 3001960 1717700911000000000 3b4e837c9f6b3b4fbb5b3b95148e553c 1 std/SemanticVersion.zig +61526 3002171 1717700911000000000 00003d31510dec096134200d0d6ceecc 1 std/elf.zig +12325 3002357 1717700911000000000 2229bf6824a9119504139fcdb850890e 1 std/os.zig +207296 3002360 1717700911000000000 651fd04e37ca32286baf84da551c7ce0 1 std/os/linux.zig +12494 3002383 1717700911000000000 e9933b000fa707703dab8f2fe68b002a 1 std/os/linux/tls.zig +293019 3002445 1717700911000000000 3aef046ab18b515bbbbf65ba8531ef93 1 std/posix.zig +31762 3002215 1717700911000000000 39822c5f2ad237650217b35e72989b75 1 std/heap.zig +12747 3002220 1717700911000000000 0c84990d94912da71f88ccdd844ff032 1 std/heap/arena_allocator.zig +176912 3002346 1717700911000000000 223e2fd0f89a74fd7d5132dbe48f1c2c 1 std/mem.zig +13626 3002347 1717700911000000000 98c52b2fa05c32ad77f1743a5f3383ee 1 std/mem/Allocator.zig +14239 3002274 1717700911000000000 a69e9fd3810cdd1601c26dd47210af71 1 std/linked_list.zig +3917 3002216 1717700911000000000 985cae2df1113f68d7f2eca79afe1887 1 std/heap/PageAllocator.zig +1301 3002217 1717700911000000000 3db24c00baa9c03a40bfeaa152e28593 1 std/heap/ThreadSafeAllocator.zig +54097 3001987 1717700911000000000 5fc2474d41197418fc547d7d64491a85 1 std/Thread.zig +10030 3001990 1717700911000000000 6ec4900de2fa66c512d3a1a8b197182b 1 std/Thread/Mutex.zig +19056 3002000 1717700911000000000 fbe5a337296572a6d62cbde681c465ea 1 std/atomic.zig +74835 3002450 1717700911000000000 26bff32158c4e55ea1dbd7cbd193b2d5 1 std/process.zig +87217 3001998 1717700911000000000 d82200bd8e9f05406e233eef46e48149 1 std/array_list.zig +95593 3001921 1717700911000000000 eb7f21887b8d6d3a1ea72f4fb7e18f23 1 std/Build.zig +48541 3001923 1717700911000000000 f0b7461b8459a4c71e300129f17dffb2 1 std/Build/Cache.zig +2248 3001925 1717700911000000000 95a1bb668e0c39f345c83920bac861b7 1 std/Build/Cache/Directory.zig +35816 3002189 1717700911000000000 9ad542fb9d5f647b2fd9aa956a4876f1 1 std/fs.zig +112808 3002191 1717700911000000000 736eee48bb9f3802d7054c19abc437df 1 std/fs/Dir.zig +65843 3002192 1717700911000000000 2f1e7806f11f80320d184c737b99b781 1 std/fs/File.zig +114248 3001997 1717700911000000000 7aa5a3d5d7c75f7861328581549e6a5d 1 std/array_hash_map.zig +38005 3002351 1717700911000000000 2df15a06c9368a128b68d617837153ef 1 std/multi_array_list.zig +12352 3002076 1717700911000000000 85ba4034d104ed83a45a1bb6ea2f588a 1 std/crypto.zig +18622 3002150 1717700911000000000 05742583e9b394547e0631c84131938c 1 std/crypto/siphash.zig +89980 3002213 1717700911000000000 52e58e0e5a1dd700c7ba1de70432e45c 1 std/hash_map.zig +26882 3001963 1717700911000000000 5b9ff543d20a09f8c07cb235a7f3c28e 1 std/Target/Query.zig +45679 3002485 1717700911000000000 495dd771e7b568e386535b63332d9a02 1 std/zig.zig +52150 3002507 1717700911000000000 d488bc81fd0ba877c413ee9c01ed7219 1 std/zig/system.zig +18992 3001929 1717700911000000000 f8e31f1e40286aec688457f633c109d1 1 std/Build/Step.zig +27571 3001927 1717700911000000000 f1a35ffb70613c5c506de0b9feb42a25 1 std/Build/Module.zig +16219 3001943 1717700911000000000 ebb5646fc6c1cbeff8fff92f756e2694 1 std/Build/Step/WriteFile.zig +50900 3001944 1717700911000000000 00b173ccd55aed075eef5aa1dccad55a 1 std/Progress.zig +29025 3002491 1717700911000000000 2573e2c79bf66e3476b0024f0dfa2173 1 std/zig/ErrorBundle.zig +76968 3001932 1717700911000000000 0500528ea762b29f66289290fec117d5 1 std/Build/Step/Compile.zig +112489 3002159 1717700911000000000 d33cf67bbc2809a1c38591e04f1e3f51 1 std/dwarf.zig +31915 3001933 1717700911000000000 6880c5430ee92854d2f87b8087aabbb0 1 std/Build/Step/ConfigHeader.zig +1884 3002334 1717700911000000000 4e39bcecc218a8cefd7304859e028778 1 std/math/log2.zig +5989 3001991 1717700911000000000 9b884db4ae244ef2af3dcea90ca42736 1 std/Thread/Pool.zig +8321 3002275 1717700911000000000 445ca968f1971dbcfae846f76f46cc2d 1 std/log.zig +106358 3002175 1717700911000000000 9b602efb3cf67bc725c9853d5fe33864 1 std/fmt.zig +25700 3002236 1717700911000000000 2c3e57ebee88e5b426bac4e5144d55a2 1 std/io.zig +5461 3002257 1717700911000000000 ed6aac6dd443d6bdac1cf31688d1b444 1 std/io/tty.zig +82077 3002477 1717700911000000000 d5fc31f78c3ec8b424ea391b2e65f728 1 std/unicode.zig +13689 3002471 1717700911000000000 131aba425aefaef0d374793c2dd9e731 1 std/time.zig +77139 3002194 1717700911000000000 6ed68741d6922f90c45c6c388b6cdd8c 1 std/fs/path.zig +12563 3002386 1717700911000000000 edca846565ef855c728e7372feed8676 1 std/os/linux/x86_64.zig +17590 3001946 1717700911000000000 5ddd4d07802b9f332a306c207663eea0 1 std/Random.zig +3177 3001955 1717700911000000000 ece4176296c0d5a4735a0e13195d3e89 1 std/Random/Xoshiro256.zig +23359 3001988 1717700911000000000 55e7c53750c5f84af61f7e61406bc0f0 1 std/Thread/Condition.zig +1796 3001995 1717700911000000000 43f2cf40b5fd32903bf18a54ea66fc91 1 std/Thread/WaitGroup.zig +9239 3001992 1717700911000000000 d703f6a7af8c150d259a587850decd1f 1 std/Thread/ResetEvent.zig +200963 3002430 1717700911000000000 6382cd937e84a8fc6ae02341db586df9 1 std/os/windows.zig +2697 3002240 1717700911000000000 8464fd0bdf5c1f8ba10a286a4fe46f4d 1 std/io/Writer.zig +13386 3002428 1717700911000000000 b23fdad07ce3b3bc638202a13d269a17 1 std/os/wasi.zig +6224 3002152 1717700911000000000 1478fc3a3f5e7178b0ebc595cf60927a 1 std/crypto/tlcsprng.zig +29780 3002455 1717700911000000000 f63bcad555043dc37b62da5b7656cb6e 1 std/sort.zig +51714 3002456 1717700911000000000 eb8790d984ce4a6ddd6376d877c85ff1 1 std/sort/block.zig +14616 3001999 1717700911000000000 0fed3eb789529104667fd82e81a9af62 1 std/ascii.zig +76391 3001967 1717700911000000000 4668a311541b6be75afd88bf66028ad5 1 std/Target/arm.zig +17620 3002460 1717700911000000000 11fc6dca32658eb05179945f9031219f 1 std/static_string_map.zig +10710 3002457 1717700911000000000 f2973ab2be6115a15cf6c75a2be36ad3 1 std/sort/pdq.zig +7643 3002339 1717700911000000000 03910049e32f401cd3296cc1352aecb4 1 std/math/powi.zig +55939 3002172 1717700911000000000 9fbbf465379ce46a9365e411debc3ce1 1 std/enums.zig +1730 3002199 1717700911000000000 36cb1b0b5e0bb7d10f9b200b0a751743 1 std/hash.zig +19972 3002205 1717700911000000000 c36dede4b91e35db37ea45c66dbe6fe9 1 std/hash/crc.zig +3882 3002206 1717700911000000000 168f6844905becfc3ec252416dbee69f 1 std/hash/crc/impl.zig +6449 3002251 1717700911000000000 3bcfe7862cea857ee79939a098991ad5 1 std/io/fixed_buffer_stream.zig +14434 3002238 1717700911000000000 2655b33c088dd930683d9eb843eaceb4 1 std/io/Reader.zig +2057 3002026 1717700911000000000 a778ec13ef93e0ace847f52f066441fd 1 std/compress.zig +3736 3002065 1717700911000000000 a5c9eee5eaf5943e22c8a03fac3f2841 1 std/compress/zlib.zig +23844 3002041 1717700911000000000 61343f5304677e260ccaed8ba225c2b1 1 std/compress/flate/inflate.zig +7460 3002037 1717700911000000000 1c1d1c1c4e61c64090b7ace80a4c2dab 1 std/compress/flate/container.zig +16625 3002033 1717700911000000000 8ba4aa19f03596c0d0eb18045a7331e8 1 std/compress/flate/bit_reader.zig +7434 3002029 1717700911000000000 a6347ffd91bdf7b166947d627e9f38c5 1 std/compress/flate/CircularBuffer.zig +3519 3002200 1717700911000000000 4e3c7d701979e5945ab9f85fed59a579 1 std/hash/adler.zig +10966 3002039 1717700911000000000 e24401bc06abbf873844211e243f0871 1 std/compress/flate/huffman_decoder.zig +1399 3002163 1717700911000000000 40a7d4ac60d12c6e9ca294acaed35474 1 std/dwarf/FORM.zig +3900 3002166 1717700911000000000 b5711d1b73e43c5aaea25647f88f9369 1 std/dwarf/TAG.zig +7395 3002160 1717700911000000000 0736a520f4793791a2cfc257bfcfd3b6 1 std/dwarf/AT.zig +643 3002162 1717700911000000000 6f6a9e4e1602df062ad02179710971c4 1 std/dwarf/EH.zig +94423 3002380 1717700911000000000 936f06081ca66c21f2225e91832d8a41 1 std/os/linux/syscalls.zig +19768 3002515 1717700911000000000 817d70e351edd4b746ab4c444c0d2b09 1 std/zig/system/x86.zig +1273 3001966 1717700911000000000 92589c8e708010b66287cffb30b3644a 1 std/Target/arc.zig +69762 3001968 1717700911000000000 d6af57434a87d01c08b32d2bfe25fdaa 1 std/Target/avr.zig +77144 3001970 1717700911000000000 c690addfa0ddc66f16428c3843909a46 1 std/Target/csky.zig +16084 3001971 1717700911000000000 ca6f1a2a9e6e8fa60a8331d7c5f5ce34 1 std/Target/hexagon.zig +7121 3001973 1717700911000000000 d75880c23fe47c4e74168b752266aab9 1 std/Target/m68k.zig +2220 3001975 1717700911000000000 d6af7e91115ce15de6cc6fa6b85ad607 1 std/Target/msp430.zig +81486 3001965 1717700911000000000 c94083fc646f9b20640e65787e33fdc0 1 std/Target/amdgpu.zig +25913 3001979 1717700911000000000 9d8c66f36c8cefa8cdeac8497ff9ed3d 1 std/Target/s390x.zig +1273 3001985 1717700911000000000 1becbd14309ffd333ba9f93137feeab0 1 std/Target/xtensa.zig +1275 3001982 1717700911000000000 3f87de4b4cab37706212bd9a456a8c58 1 std/Target/ve.zig +94346 3001964 1717700911000000000 136876fa8ce544da55eab725094091a5 1 std/Target/aarch64.zig +2409 3001969 1717700911000000000 1693b91547d868068f63e102f2ccb211 1 std/Target/bpf.zig +5236 3001972 1717700911000000000 fd217450c001fea386e26e5ae8ee436e 1 std/Target/loongarch.zig +16066 3001974 1717700911000000000 6e5fb373b9f2ae19c60dbed74eb241dc 1 std/Target/mips.zig +34534 3001977 1717700911000000000 51352484986d855d36c4732d68bc73d0 1 std/Target/powerpc.zig +53948 3001978 1717700911000000000 5dd87bdcf11a3787d33834ee1afcb1ea 1 std/Target/riscv.zig +19757 3001980 1717700911000000000 81e62932de5b471d355190a547b0390a 1 std/Target/sparc.zig +77930 3001981 1717700911000000000 0611f617b9ec2d1a8e22aa44c1fe7363 1 std/Target/spirv.zig +13279 3001976 1717700911000000000 c4c3d3112933eb72020bc9eebc304ed2 1 std/Target/nvptx.zig +4508 3001983 1717700911000000000 d86c84e4bae678df19d1bcef0e88aef9 1 std/Target/wasm.zig +19546 3002167 1717700911000000000 eeb537ce254d8635c5876f3cb23ba2ab 1 std/dwarf/abi.zig +26403 3002168 1717700911000000000 17cfec6893f0195cf3f2128e131aebbd 1 std/dwarf/call_frame.zig +71838 3002169 1717700911000000000 472566d679006f02ce08a8e6d3ca5840 1 std/dwarf/expressions.zig +10091 3002480 1717700911000000000 616a2d791eb8d67329f8198701e2bbad 1 std/valgrind.zig +23129 3002453 1717700911000000000 b579436bcc763fc86642b2a1d69be89a 1 std/simd.zig +58779 3001941 1717700911000000000 2628367b628e7df7bf938bc2188b14e7 1 std/Build/Step/Run.zig +72708 3002451 1717700911000000000 046fa60b44c156af61840e746b56a6c2 1 std/process/Child.zig +530 3001953 1717700911000000000 6862d091fadcbbb652464ab10689bd23 1 std/Random/SplitMix64.zig +17036 3002170 1717700911000000000 e5e4bda8771008b986953e018b241bdd 1 std/dynamic_library.zig +17851 3002273 1717700911000000000 62510503fe6b45659189d32c19c9dc45 1 std/leb128.zig +43084 3001989 1717700911000000000 a67e9f409c649ae15d47dcc9582247f0 1 std/Thread/Futex.zig +1299 3002245 1717700911000000000 9ea5eaf4f2d36e2273f3ecec7f813b61 1 std/io/buffered_writer.zig +9295 3001935 1717700911000000000 268e240d3773b7543a10f2365b34cc53 1 std/Build/Step/InstallArtifact.zig +1160 3002249 1717700911000000000 32ae6866d358d400739c8281e2b92d26 1 std/io/counting_writer.zig +8372 3002211 1717700911000000000 d48498b32f349820311bbf338ae1aae5 1 std/hash/wyhash.zig +1618 3002036 1717700911000000000 60e22c8a23680b34b51d27b486811807 1 std/compress/flate/consts.zig +13375 3002032 1717700911000000000 239244362ca7a3d92e32a4518ccda927 1 std/compress/flate/Token.zig +36892 3002148 1717700911000000000 aeaa6f15041af562aebdfbb8f2e94f9d 1 std/crypto/sha2.zig +20392 3002173 1717700911000000000 a41115e4a4263ff02975e97d21f21847 1 std/fifo.zig +1464 3002490 1717700911000000000 262bf5a41c36322233615e07256bc570 1 std/zig/Client.zig +8752 3002495 1717700911000000000 2d7e0835ecf9b1ce89b625495c8209c2 1 std/zig/Server.zig +2591 3002190 1717700911000000000 54cecc0501b004131b133c8ec52688b3 1 std/fs/AtomicFile.zig +23028 3002001 1717700911000000000 5f649adf883cb2acad194b60017a4672 1 std/base64.zig +39156 3001924 1717700911000000000 628e7a63840b5d008ad84d18a2a50b21 1 std/Build/Cache/DepTokenizer.zig +2685 3001948 1717700911000000000 5244bfd5edd68ad074bfdf866029fa86 1 std/Random/ChaCha.zig +52267 3002104 1717700911000000000 250bf69f713193c74da886706bb53369 1 std/crypto/chacha20.zig +5693 3002165 1717700911000000000 01d731f8d28ba8382ff3c5885d5e0c75 1 std/dwarf/OP.zig +7399 3002156 1717700911000000000 7e3716a3c82a36541c6cf09b56a96da0 1 std/crypto/utils.zig +1539 3002252 1717700911000000000 ca6d9ebe9107eb6ffe4cc4b92611772a 1 std/io/limited_reader.zig +64174 3002008 1717700911000000000 ecfd926ec456ba7acf15b5e7bec5f532 1 std/c.zig +10812 3002018 1717700911000000000 b5d2e09197008802157fd9bda951945e 1 std/c/linux.zig +14595 3002201 1717700911000000000 9802848537ec3da81ac651945a298250 1 std/hash/auto_hash.zig +3957 3002384 1717700911000000000 8a6d08b36d5d25b29bdff67ade3e947b 1 std/os/linux/vdso.zig diff --git a/.zig-cache/h/f63180c72e721658c0a8411817773fec.txt b/.zig-cache/h/f63180c72e721658c0a8411817773fec.txt new file mode 100644 index 0000000..5eee5b0 --- /dev/null +++ b/.zig-cache/h/f63180c72e721658c0a8411817773fec.txt @@ -0,0 +1,85 @@ +0 +242 3004580 1730775373896953985 9a15c2ed1c5c68ced4df3591ba3d00f2 0 src/main.zig +7616 3002461 1717700911000000000 a112ef71b351e8f79f6f43c583ede25c 1 std/std.zig +23040 3002458 1717700911000000000 da66963546b611ee7750a27396b7d1ea 1 std/start.zig +115223 3002157 1717700911000000000 864599658ca312005d8d3860dcc5d44e 1 std/debug.zig +3028 3003642 1730773944850718791 274c62f9f3726389a4023cceb5215528 0 /var/home/tristan/.cache/zig/b/274c62f9f3726389a4023cceb5215528/builtin.zig +33165 3002006 1717700911000000000 f94156764e93e22ac481419ae3dcd7e2 1 std/builtin.zig +87972 3001962 1717700911000000000 2058e9176f2f8c413153da85bdefea9a 1 std/Target.zig +129328 3001984 1717700911000000000 aa1c9ead6b093aa4fc744cbaf6cdb147 1 std/Target/x86.zig +73503 3002278 1717700911000000000 4f495cdd87469544c122e37211fe3d16 1 std/math.zig +41362 3002349 1717700911000000000 222d7cb14bd7ca087b75cbc16cba6dda 1 std/meta.zig +11091 3001960 1717700911000000000 3b4e837c9f6b3b4fbb5b3b95148e553c 1 std/SemanticVersion.zig +61526 3002171 1717700911000000000 00003d31510dec096134200d0d6ceecc 1 std/elf.zig +12325 3002357 1717700911000000000 2229bf6824a9119504139fcdb850890e 1 std/os.zig +207296 3002360 1717700911000000000 651fd04e37ca32286baf84da551c7ce0 1 std/os/linux.zig +12494 3002383 1717700911000000000 e9933b000fa707703dab8f2fe68b002a 1 std/os/linux/tls.zig +293019 3002445 1717700911000000000 3aef046ab18b515bbbbf65ba8531ef93 1 std/posix.zig +176912 3002346 1717700911000000000 223e2fd0f89a74fd7d5132dbe48f1c2c 1 std/mem.zig +13386 3002428 1717700911000000000 b23fdad07ce3b3bc638202a13d269a17 1 std/os/wasi.zig +8321 3002275 1717700911000000000 445ca968f1971dbcfae846f76f46cc2d 1 std/log.zig +12352 3002076 1717700911000000000 85ba4034d104ed83a45a1bb6ea2f588a 1 std/crypto.zig +35816 3002189 1717700911000000000 9ad542fb9d5f647b2fd9aa956a4876f1 1 std/fs.zig +106358 3002175 1717700911000000000 9b602efb3cf67bc725c9853d5fe33864 1 std/fmt.zig +6224 3002152 1717700911000000000 1478fc3a3f5e7178b0ebc595cf60927a 1 std/crypto/tlcsprng.zig +19056 3002000 1717700911000000000 fbe5a337296572a6d62cbde681c465ea 1 std/atomic.zig +54097 3001987 1717700911000000000 5fc2474d41197418fc547d7d64491a85 1 std/Thread.zig +10030 3001990 1717700911000000000 6ec4900de2fa66c512d3a1a8b197182b 1 std/Thread/Mutex.zig +25700 3002236 1717700911000000000 2c3e57ebee88e5b426bac4e5144d55a2 1 std/io.zig +65843 3002192 1717700911000000000 2f1e7806f11f80320d184c737b99b781 1 std/fs/File.zig +2697 3002240 1717700911000000000 8464fd0bdf5c1f8ba10a286a4fe46f4d 1 std/io/Writer.zig +12563 3002386 1717700911000000000 edca846565ef855c728e7372feed8676 1 std/os/linux/x86_64.zig +94423 3002380 1717700911000000000 936f06081ca66c21f2225e91832d8a41 1 std/os/linux/syscalls.zig +13626 3002347 1717700911000000000 98c52b2fa05c32ad77f1743a5f3383ee 1 std/mem/Allocator.zig +89980 3002213 1717700911000000000 52e58e0e5a1dd700c7ba1de70432e45c 1 std/hash_map.zig +5461 3002257 1717700911000000000 ed6aac6dd443d6bdac1cf31688d1b444 1 std/io/tty.zig +112489 3002159 1717700911000000000 d33cf67bbc2809a1c38591e04f1e3f51 1 std/dwarf.zig +55939 3002172 1717700911000000000 9fbbf465379ce46a9365e411debc3ce1 1 std/enums.zig +87217 3001998 1717700911000000000 d82200bd8e9f05406e233eef46e48149 1 std/array_list.zig +114248 3001997 1717700911000000000 7aa5a3d5d7c75f7861328581549e6a5d 1 std/array_hash_map.zig +38005 3002351 1717700911000000000 2df15a06c9368a128b68d617837153ef 1 std/multi_array_list.zig +112808 3002191 1717700911000000000 736eee48bb9f3802d7054c19abc437df 1 std/fs/Dir.zig +1730 3002199 1717700911000000000 36cb1b0b5e0bb7d10f9b200b0a751743 1 std/hash.zig +19972 3002205 1717700911000000000 c36dede4b91e35db37ea45c66dbe6fe9 1 std/hash/crc.zig +3882 3002206 1717700911000000000 168f6844905becfc3ec252416dbee69f 1 std/hash/crc/impl.zig +6449 3002251 1717700911000000000 3bcfe7862cea857ee79939a098991ad5 1 std/io/fixed_buffer_stream.zig +14434 3002238 1717700911000000000 2655b33c088dd930683d9eb843eaceb4 1 std/io/Reader.zig +2057 3002026 1717700911000000000 a778ec13ef93e0ace847f52f066441fd 1 std/compress.zig +3736 3002065 1717700911000000000 a5c9eee5eaf5943e22c8a03fac3f2841 1 std/compress/zlib.zig +23844 3002041 1717700911000000000 61343f5304677e260ccaed8ba225c2b1 1 std/compress/flate/inflate.zig +7460 3002037 1717700911000000000 1c1d1c1c4e61c64090b7ace80a4c2dab 1 std/compress/flate/container.zig +16625 3002033 1717700911000000000 8ba4aa19f03596c0d0eb18045a7331e8 1 std/compress/flate/bit_reader.zig +7434 3002029 1717700911000000000 a6347ffd91bdf7b166947d627e9f38c5 1 std/compress/flate/CircularBuffer.zig +3519 3002200 1717700911000000000 4e3c7d701979e5945ab9f85fed59a579 1 std/hash/adler.zig +10966 3002039 1717700911000000000 e24401bc06abbf873844211e243f0871 1 std/compress/flate/huffman_decoder.zig +77139 3002194 1717700911000000000 6ed68741d6922f90c45c6c388b6cdd8c 1 std/fs/path.zig +1399 3002163 1717700911000000000 40a7d4ac60d12c6e9ca294acaed35474 1 std/dwarf/FORM.zig +3900 3002166 1717700911000000000 b5711d1b73e43c5aaea25647f88f9369 1 std/dwarf/TAG.zig +7395 3002160 1717700911000000000 0736a520f4793791a2cfc257bfcfd3b6 1 std/dwarf/AT.zig +643 3002162 1717700911000000000 6f6a9e4e1602df062ad02179710971c4 1 std/dwarf/EH.zig +1884 3002334 1717700911000000000 4e39bcecc218a8cefd7304859e028778 1 std/math/log2.zig +200963 3002430 1717700911000000000 6382cd937e84a8fc6ae02341db586df9 1 std/os/windows.zig +19546 3002167 1717700911000000000 eeb537ce254d8635c5876f3cb23ba2ab 1 std/dwarf/abi.zig +26403 3002168 1717700911000000000 17cfec6893f0195cf3f2128e131aebbd 1 std/dwarf/call_frame.zig +71838 3002169 1717700911000000000 472566d679006f02ce08a8e6d3ca5840 1 std/dwarf/expressions.zig +43084 3001989 1717700911000000000 a67e9f409c649ae15d47dcc9582247f0 1 std/Thread/Futex.zig +82077 3002477 1717700911000000000 d5fc31f78c3ec8b424ea391b2e65f728 1 std/unicode.zig +23129 3002453 1717700911000000000 b579436bcc763fc86642b2a1d69be89a 1 std/simd.zig +31762 3002215 1717700911000000000 39822c5f2ad237650217b35e72989b75 1 std/heap.zig +12747 3002220 1717700911000000000 0c84990d94912da71f88ccdd844ff032 1 std/heap/arena_allocator.zig +14239 3002274 1717700911000000000 a69e9fd3810cdd1601c26dd47210af71 1 std/linked_list.zig +3917 3002216 1717700911000000000 985cae2df1113f68d7f2eca79afe1887 1 std/heap/PageAllocator.zig +74835 3002450 1717700911000000000 26bff32158c4e55ea1dbd7cbd193b2d5 1 std/process.zig +29780 3002455 1717700911000000000 f63bcad555043dc37b62da5b7656cb6e 1 std/sort.zig +51714 3002456 1717700911000000000 eb8790d984ce4a6ddd6376d877c85ff1 1 std/sort/block.zig +17036 3002170 1717700911000000000 e5e4bda8771008b986953e018b241bdd 1 std/dynamic_library.zig +17851 3002273 1717700911000000000 62510503fe6b45659189d32c19c9dc45 1 std/leb128.zig +10710 3002457 1717700911000000000 f2973ab2be6115a15cf6c75a2be36ad3 1 std/sort/pdq.zig +10091 3002480 1717700911000000000 616a2d791eb8d67329f8198701e2bbad 1 std/valgrind.zig +13689 3002471 1717700911000000000 131aba425aefaef0d374793c2dd9e731 1 std/time.zig +50900 3001944 1717700911000000000 00b173ccd55aed075eef5aa1dccad55a 1 std/Progress.zig +1618 3002036 1717700911000000000 60e22c8a23680b34b51d27b486811807 1 std/compress/flate/consts.zig +13375 3002032 1717700911000000000 239244362ca7a3d92e32a4518ccda927 1 std/compress/flate/Token.zig +8372 3002211 1717700911000000000 d48498b32f349820311bbf338ae1aae5 1 std/hash/wyhash.zig +9239 3001992 1717700911000000000 d703f6a7af8c150d259a587850decd1f 1 std/Thread/ResetEvent.zig +5693 3002165 1717700911000000000 01d731f8d28ba8382ff3c5885d5e0c75 1 std/dwarf/OP.zig diff --git a/.zig-cache/h/fb9a8153e15e2a2a44e952c7ace3eddf.txt b/.zig-cache/h/fb9a8153e15e2a2a44e952c7ace3eddf.txt new file mode 100644 index 0000000..89ab6fa --- /dev/null +++ b/.zig-cache/h/fb9a8153e15e2a2a44e952c7ace3eddf.txt @@ -0,0 +1,84 @@ +0 +191 3004581 1730774279473559116 7e2860f081407d3d9f477662f7b2cd11 0 src/root.zig +7616 3002461 1717700911000000000 a112ef71b351e8f79f6f43c583ede25c 1 std/std.zig +23040 3002458 1717700911000000000 da66963546b611ee7750a27396b7d1ea 1 std/start.zig +115223 3002157 1717700911000000000 864599658ca312005d8d3860dcc5d44e 1 std/debug.zig +3028 3004461 1730773954645801982 9a5ebbcdd17542e1b275b4804c5eed72 0 /var/home/tristan/.cache/zig/b/9a5ebbcdd17542e1b275b4804c5eed72/builtin.zig +33165 3002006 1717700911000000000 f94156764e93e22ac481419ae3dcd7e2 1 std/builtin.zig +87972 3001962 1717700911000000000 2058e9176f2f8c413153da85bdefea9a 1 std/Target.zig +129328 3001984 1717700911000000000 aa1c9ead6b093aa4fc744cbaf6cdb147 1 std/Target/x86.zig +73503 3002278 1717700911000000000 4f495cdd87469544c122e37211fe3d16 1 std/math.zig +41362 3002349 1717700911000000000 222d7cb14bd7ca087b75cbc16cba6dda 1 std/meta.zig +11091 3001960 1717700911000000000 3b4e837c9f6b3b4fbb5b3b95148e553c 1 std/SemanticVersion.zig +12325 3002357 1717700911000000000 2229bf6824a9119504139fcdb850890e 1 std/os.zig +13386 3002428 1717700911000000000 b23fdad07ce3b3bc638202a13d269a17 1 std/os/wasi.zig +8321 3002275 1717700911000000000 445ca968f1971dbcfae846f76f46cc2d 1 std/log.zig +12352 3002076 1717700911000000000 85ba4034d104ed83a45a1bb6ea2f588a 1 std/crypto.zig +35816 3002189 1717700911000000000 9ad542fb9d5f647b2fd9aa956a4876f1 1 std/fs.zig +106358 3002175 1717700911000000000 9b602efb3cf67bc725c9853d5fe33864 1 std/fmt.zig +6224 3002152 1717700911000000000 1478fc3a3f5e7178b0ebc595cf60927a 1 std/crypto/tlcsprng.zig +19056 3002000 1717700911000000000 fbe5a337296572a6d62cbde681c465ea 1 std/atomic.zig +54097 3001987 1717700911000000000 5fc2474d41197418fc547d7d64491a85 1 std/Thread.zig +10030 3001990 1717700911000000000 6ec4900de2fa66c512d3a1a8b197182b 1 std/Thread/Mutex.zig +25700 3002236 1717700911000000000 2c3e57ebee88e5b426bac4e5144d55a2 1 std/io.zig +65843 3002192 1717700911000000000 2f1e7806f11f80320d184c737b99b781 1 std/fs/File.zig +293019 3002445 1717700911000000000 3aef046ab18b515bbbbf65ba8531ef93 1 std/posix.zig +207296 3002360 1717700911000000000 651fd04e37ca32286baf84da551c7ce0 1 std/os/linux.zig +2697 3002240 1717700911000000000 8464fd0bdf5c1f8ba10a286a4fe46f4d 1 std/io/Writer.zig +176912 3002346 1717700911000000000 223e2fd0f89a74fd7d5132dbe48f1c2c 1 std/mem.zig +13626 3002347 1717700911000000000 98c52b2fa05c32ad77f1743a5f3383ee 1 std/mem/Allocator.zig +89980 3002213 1717700911000000000 52e58e0e5a1dd700c7ba1de70432e45c 1 std/hash_map.zig +5461 3002257 1717700911000000000 ed6aac6dd443d6bdac1cf31688d1b444 1 std/io/tty.zig +112489 3002159 1717700911000000000 d33cf67bbc2809a1c38591e04f1e3f51 1 std/dwarf.zig +55939 3002172 1717700911000000000 9fbbf465379ce46a9365e411debc3ce1 1 std/enums.zig +87217 3001998 1717700911000000000 d82200bd8e9f05406e233eef46e48149 1 std/array_list.zig +114248 3001997 1717700911000000000 7aa5a3d5d7c75f7861328581549e6a5d 1 std/array_hash_map.zig +38005 3002351 1717700911000000000 2df15a06c9368a128b68d617837153ef 1 std/multi_array_list.zig +61526 3002171 1717700911000000000 00003d31510dec096134200d0d6ceecc 1 std/elf.zig +112808 3002191 1717700911000000000 736eee48bb9f3802d7054c19abc437df 1 std/fs/Dir.zig +1730 3002199 1717700911000000000 36cb1b0b5e0bb7d10f9b200b0a751743 1 std/hash.zig +19972 3002205 1717700911000000000 c36dede4b91e35db37ea45c66dbe6fe9 1 std/hash/crc.zig +3882 3002206 1717700911000000000 168f6844905becfc3ec252416dbee69f 1 std/hash/crc/impl.zig +6449 3002251 1717700911000000000 3bcfe7862cea857ee79939a098991ad5 1 std/io/fixed_buffer_stream.zig +14434 3002238 1717700911000000000 2655b33c088dd930683d9eb843eaceb4 1 std/io/Reader.zig +2057 3002026 1717700911000000000 a778ec13ef93e0ace847f52f066441fd 1 std/compress.zig +3736 3002065 1717700911000000000 a5c9eee5eaf5943e22c8a03fac3f2841 1 std/compress/zlib.zig +23844 3002041 1717700911000000000 61343f5304677e260ccaed8ba225c2b1 1 std/compress/flate/inflate.zig +7460 3002037 1717700911000000000 1c1d1c1c4e61c64090b7ace80a4c2dab 1 std/compress/flate/container.zig +16625 3002033 1717700911000000000 8ba4aa19f03596c0d0eb18045a7331e8 1 std/compress/flate/bit_reader.zig +7434 3002029 1717700911000000000 a6347ffd91bdf7b166947d627e9f38c5 1 std/compress/flate/CircularBuffer.zig +3519 3002200 1717700911000000000 4e3c7d701979e5945ab9f85fed59a579 1 std/hash/adler.zig +10966 3002039 1717700911000000000 e24401bc06abbf873844211e243f0871 1 std/compress/flate/huffman_decoder.zig +77139 3002194 1717700911000000000 6ed68741d6922f90c45c6c388b6cdd8c 1 std/fs/path.zig +1399 3002163 1717700911000000000 40a7d4ac60d12c6e9ca294acaed35474 1 std/dwarf/FORM.zig +3900 3002166 1717700911000000000 b5711d1b73e43c5aaea25647f88f9369 1 std/dwarf/TAG.zig +7395 3002160 1717700911000000000 0736a520f4793791a2cfc257bfcfd3b6 1 std/dwarf/AT.zig +643 3002162 1717700911000000000 6f6a9e4e1602df062ad02179710971c4 1 std/dwarf/EH.zig +1884 3002334 1717700911000000000 4e39bcecc218a8cefd7304859e028778 1 std/math/log2.zig +200963 3002430 1717700911000000000 6382cd937e84a8fc6ae02341db586df9 1 std/os/windows.zig +12563 3002386 1717700911000000000 edca846565ef855c728e7372feed8676 1 std/os/linux/x86_64.zig +19546 3002167 1717700911000000000 eeb537ce254d8635c5876f3cb23ba2ab 1 std/dwarf/abi.zig +26403 3002168 1717700911000000000 17cfec6893f0195cf3f2128e131aebbd 1 std/dwarf/call_frame.zig +71838 3002169 1717700911000000000 472566d679006f02ce08a8e6d3ca5840 1 std/dwarf/expressions.zig +43084 3001989 1717700911000000000 a67e9f409c649ae15d47dcc9582247f0 1 std/Thread/Futex.zig +82077 3002477 1717700911000000000 d5fc31f78c3ec8b424ea391b2e65f728 1 std/unicode.zig +23129 3002453 1717700911000000000 b579436bcc763fc86642b2a1d69be89a 1 std/simd.zig +94423 3002380 1717700911000000000 936f06081ca66c21f2225e91832d8a41 1 std/os/linux/syscalls.zig +31762 3002215 1717700911000000000 39822c5f2ad237650217b35e72989b75 1 std/heap.zig +12747 3002220 1717700911000000000 0c84990d94912da71f88ccdd844ff032 1 std/heap/arena_allocator.zig +14239 3002274 1717700911000000000 a69e9fd3810cdd1601c26dd47210af71 1 std/linked_list.zig +3917 3002216 1717700911000000000 985cae2df1113f68d7f2eca79afe1887 1 std/heap/PageAllocator.zig +74835 3002450 1717700911000000000 26bff32158c4e55ea1dbd7cbd193b2d5 1 std/process.zig +29780 3002455 1717700911000000000 f63bcad555043dc37b62da5b7656cb6e 1 std/sort.zig +51714 3002456 1717700911000000000 eb8790d984ce4a6ddd6376d877c85ff1 1 std/sort/block.zig +17036 3002170 1717700911000000000 e5e4bda8771008b986953e018b241bdd 1 std/dynamic_library.zig +17851 3002273 1717700911000000000 62510503fe6b45659189d32c19c9dc45 1 std/leb128.zig +10710 3002457 1717700911000000000 f2973ab2be6115a15cf6c75a2be36ad3 1 std/sort/pdq.zig +10091 3002480 1717700911000000000 616a2d791eb8d67329f8198701e2bbad 1 std/valgrind.zig +13689 3002471 1717700911000000000 131aba425aefaef0d374793c2dd9e731 1 std/time.zig +1618 3002036 1717700911000000000 60e22c8a23680b34b51d27b486811807 1 std/compress/flate/consts.zig +13375 3002032 1717700911000000000 239244362ca7a3d92e32a4518ccda927 1 std/compress/flate/Token.zig +50900 3001944 1717700911000000000 00b173ccd55aed075eef5aa1dccad55a 1 std/Progress.zig +8372 3002211 1717700911000000000 d48498b32f349820311bbf338ae1aae5 1 std/hash/wyhash.zig +5693 3002165 1717700911000000000 01d731f8d28ba8382ff3c5885d5e0c75 1 std/dwarf/OP.zig +9239 3001992 1717700911000000000 d703f6a7af8c150d259a587850decd1f 1 std/Thread/ResetEvent.zig diff --git a/.zig-cache/h/timestamp b/.zig-cache/h/timestamp new file mode 100644 index 0000000..e69de29 diff --git a/.zig-cache/o/5871f77e77a9650d3f9d357a7d311a03/chess b/.zig-cache/o/5871f77e77a9650d3f9d357a7d311a03/chess new file mode 100755 index 0000000..6f7b46d Binary files /dev/null and b/.zig-cache/o/5871f77e77a9650d3f9d357a7d311a03/chess differ diff --git a/.zig-cache/o/5871f77e77a9650d3f9d357a7d311a03/chess.o b/.zig-cache/o/5871f77e77a9650d3f9d357a7d311a03/chess.o new file mode 100644 index 0000000..85bf610 Binary files /dev/null and b/.zig-cache/o/5871f77e77a9650d3f9d357a7d311a03/chess.o differ diff --git a/.zig-cache/o/5ed11c82f371e685f746162fff0a9be8/libchess.a b/.zig-cache/o/5ed11c82f371e685f746162fff0a9be8/libchess.a new file mode 100644 index 0000000..ea75de7 Binary files /dev/null and b/.zig-cache/o/5ed11c82f371e685f746162fff0a9be8/libchess.a differ diff --git a/.zig-cache/o/5ed11c82f371e685f746162fff0a9be8/libchess.a.o b/.zig-cache/o/5ed11c82f371e685f746162fff0a9be8/libchess.a.o new file mode 100644 index 0000000..0bda66a Binary files /dev/null and b/.zig-cache/o/5ed11c82f371e685f746162fff0a9be8/libchess.a.o differ diff --git a/.zig-cache/o/66c6ed1dde8515adab3dc7840e31f3d3/build b/.zig-cache/o/66c6ed1dde8515adab3dc7840e31f3d3/build new file mode 100755 index 0000000..6ae2e5c Binary files /dev/null and b/.zig-cache/o/66c6ed1dde8515adab3dc7840e31f3d3/build differ diff --git a/.zig-cache/o/66c6ed1dde8515adab3dc7840e31f3d3/build.o b/.zig-cache/o/66c6ed1dde8515adab3dc7840e31f3d3/build.o new file mode 100644 index 0000000..d86071d Binary files /dev/null and b/.zig-cache/o/66c6ed1dde8515adab3dc7840e31f3d3/build.o differ diff --git a/.zig-cache/o/a32fcfc0e475f08356ed8aef4020640b/dependencies.zig b/.zig-cache/o/a32fcfc0e475f08356ed8aef4020640b/dependencies.zig new file mode 100644 index 0000000..72e4e83 --- /dev/null +++ b/.zig-cache/o/a32fcfc0e475f08356ed8aef4020640b/dependencies.zig @@ -0,0 +1,2 @@ +pub const packages = struct {}; +pub const root_deps: []const struct { []const u8, []const u8 } = &.{}; diff --git a/.zig-cache/z/53d8da468c12563c8ba398391b5e75e7 b/.zig-cache/z/53d8da468c12563c8ba398391b5e75e7 new file mode 100644 index 0000000..c8e1299 Binary files /dev/null and b/.zig-cache/z/53d8da468c12563c8ba398391b5e75e7 differ diff --git a/.zig-cache/z/e42243edc0522d29f45261b0e3b2fb38 b/.zig-cache/z/e42243edc0522d29f45261b0e3b2fb38 new file mode 100644 index 0000000..667510d Binary files /dev/null and b/.zig-cache/z/e42243edc0522d29f45261b0e3b2fb38 differ diff --git a/.zig-cache/z/fec4b29b2a4e776097ce5246af116f09 b/.zig-cache/z/fec4b29b2a4e776097ce5246af116f09 new file mode 100644 index 0000000..af25d9e Binary files /dev/null and b/.zig-cache/z/fec4b29b2a4e776097ce5246af116f09 differ diff --git a/build.zig b/build.zig new file mode 100644 index 0000000..8232aa5 --- /dev/null +++ b/build.zig @@ -0,0 +1,91 @@ +const std = @import("std"); + +// Although this function looks imperative, note that its job is to +// declaratively construct a build graph that will be executed by an external +// runner. +pub fn build(b: *std.Build) void { + // Standard target options allows the person running `zig build` to choose + // what target to build for. Here we do not override the defaults, which + // means any target is allowed, and the default is native. Other options + // for restricting supported target set are available. + const target = b.standardTargetOptions(.{}); + + // Standard optimization options allow the person running `zig build` to select + // between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall. Here we do not + // set a preferred release mode, allowing the user to decide how to optimize. + const optimize = b.standardOptimizeOption(.{}); + + const lib = b.addStaticLibrary(.{ + .name = "chess", + // In this case the main source file is merely a path, however, in more + // complicated build scripts, this could be a generated file. + .root_source_file = b.path("src/root.zig"), + .target = target, + .optimize = optimize, + }); + + // This declares intent for the library to be installed into the standard + // location when the user invokes the "install" step (the default step when + // running `zig build`). + b.installArtifact(lib); + + const exe = b.addExecutable(.{ + .name = "chess", + .root_source_file = b.path("src/main.zig"), + .target = target, + .optimize = optimize, + }); + + // This declares intent for the executable to be installed into the + // standard location when the user invokes the "install" step (the default + // step when running `zig build`). + b.installArtifact(exe); + + // This *creates* a Run step in the build graph, to be executed when another + // step is evaluated that depends on it. The next line below will establish + // such a dependency. + const run_cmd = b.addRunArtifact(exe); + + // By making the run step depend on the install step, it will be run from the + // installation directory rather than directly from within the cache directory. + // This is not necessary, however, if the application depends on other installed + // files, this ensures they will be present and in the expected location. + run_cmd.step.dependOn(b.getInstallStep()); + + // This allows the user to pass arguments to the application in the build + // command itself, like this: `zig build run -- arg1 arg2 etc` + if (b.args) |args| { + run_cmd.addArgs(args); + } + + // This creates a build step. It will be visible in the `zig build --help` menu, + // and can be selected like this: `zig build run` + // This will evaluate the `run` step rather than the default, which is "install". + const run_step = b.step("run", "Run the app"); + run_step.dependOn(&run_cmd.step); + + // Creates a step for unit testing. This only builds the test executable + // but does not run it. + const lib_unit_tests = b.addTest(.{ + .root_source_file = b.path("src/root.zig"), + .target = target, + .optimize = optimize, + }); + + const run_lib_unit_tests = b.addRunArtifact(lib_unit_tests); + + const exe_unit_tests = b.addTest(.{ + .root_source_file = b.path("src/main.zig"), + .target = target, + .optimize = optimize, + }); + + const run_exe_unit_tests = b.addRunArtifact(exe_unit_tests); + + // Similar to creating the run step earlier, this exposes a `test` step to + // the `zig build --help` menu, providing a way for the user to request + // running the unit tests. + const test_step = b.step("test", "Run unit tests"); + test_step.dependOn(&run_lib_unit_tests.step); + test_step.dependOn(&run_exe_unit_tests.step); +} diff --git a/build.zig.zon b/build.zig.zon new file mode 100644 index 0000000..d3d59ed --- /dev/null +++ b/build.zig.zon @@ -0,0 +1,72 @@ +.{ + // This is the default name used by packages depending on this one. For + // example, when a user runs `zig fetch --save `, this field is used + // as the key in the `dependencies` table. Although the user can choose a + // different name, most users will stick with this provided value. + // + // It is redundant to include "zig" in this name because it is already + // within the Zig package namespace. + .name = "chess", + + // This is a [Semantic Version](https://semver.org/). + // In a future version of Zig it will be used for package deduplication. + .version = "0.0.0", + + // This field is optional. + // This is currently advisory only; Zig does not yet do anything + // with this value. + //.minimum_zig_version = "0.11.0", + + // This field is optional. + // Each dependency must either provide a `url` and `hash`, or a `path`. + // `zig build --fetch` can be used to fetch all dependencies of a package, recursively. + // Once all dependencies are fetched, `zig build` no longer requires + // internet connectivity. + .dependencies = .{ + // See `zig fetch --save ` for a command-line interface for adding dependencies. + //.example = .{ + // // When updating this field to a new URL, be sure to delete the corresponding + // // `hash`, otherwise you are communicating that you expect to find the old hash at + // // the new URL. + // .url = "https://example.com/foo.tar.gz", + // + // // This is computed from the file contents of the directory of files that is + // // obtained after fetching `url` and applying the inclusion rules given by + // // `paths`. + // // + // // This field is the source of truth; packages do not come from a `url`; they + // // come from a `hash`. `url` is just one of many possible mirrors for how to + // // obtain a package matching this `hash`. + // // + // // Uses the [multihash](https://multiformats.io/multihash/) format. + // .hash = "...", + // + // // When this is provided, the package is found in a directory relative to the + // // build root. In this case the package's hash is irrelevant and therefore not + // // computed. This field and `url` are mutually exclusive. + // .path = "foo", + + // // When this is set to `true`, a package is declared to be lazily + // // fetched. This makes the dependency only get fetched if it is + // // actually used. + // .lazy = false, + //}, + }, + + // Specifies the set of files and directories that are included in this package. + // Only files and directories listed here are included in the `hash` that + // is computed for this package. Only files listed here will remain on disk + // when using the zig package manager. As a rule of thumb, one should list + // files required for compilation plus any license(s). + // Paths are relative to the build root. Use the empty string (`""`) to refer to + // the build root itself. + // A directory listed here means that all files within, recursively, are included. + .paths = .{ + "build.zig", + "build.zig.zon", + "src", + // For example... + //"LICENSE", + //"README.md", + }, +} diff --git a/src/board.zig b/src/board.zig new file mode 100644 index 0000000..2120c58 --- /dev/null +++ b/src/board.zig @@ -0,0 +1,21 @@ +const std = @import("std"); + +pub const PieceType = enum { None, Pawn, Knight, Bishop, Rook, Queen, King }; +pub const Color = enum { White, Black }; + +pub const Piece = struct { + color: ?Color, + kind: PieceType, +}; + +pub const Board = [8][8]Piece; + +pub fn initBoard() Board { + var board: Board = undefined; + // placeholder for board logic + return board; +} + +pub fn printBoard(board: Board) void { + // placeholder for print logic +} \ No newline at end of file diff --git a/src/engine.zig b/src/engine.zig new file mode 100644 index 0000000..9131a44 --- /dev/null +++ b/src/engine.zig @@ -0,0 +1,10 @@ +const std = @import("std"); + +pub fn initEngine() void { + // placeholder for engine api interactions +} + +pub fn sendMove(move: []const u8) void { + // placeholder for piece moving to engine +} + diff --git a/src/main.zig b/src/main.zig new file mode 100644 index 0000000..af14046 --- /dev/null +++ b/src/main.zig @@ -0,0 +1,10 @@ +const std = @import("std"); +const board = @import("board"); +const engine = @import("engine"); + +pub fn main() void { + // var gameBoard = board.initBoard(); + // board.printBoard(gameBoard); + // engine.initEngine(); + // placeholder +} \ No newline at end of file diff --git a/src/move.zig b/src/move.zig new file mode 100644 index 0000000..53797d3 --- /dev/null +++ b/src/move.zig @@ -0,0 +1,7 @@ +const std = @import("std"); +const Board = @import("board").Board; + +pub fn isValidMove(board: Board, from: [2]u8, to: [2]u8) bool { + // placeholder for logic for valid moves + return true; // ? +} \ No newline at end of file diff --git a/src/root.zig b/src/root.zig new file mode 100644 index 0000000..ecfeade --- /dev/null +++ b/src/root.zig @@ -0,0 +1,10 @@ +const std = @import("std"); +const testing = std.testing; + +export fn add(a: i32, b: i32) i32 { + return a + b; +} + +test "basic add functionality" { + try testing.expect(add(3, 7) == 10); +} diff --git a/zig-out/bin/chess b/zig-out/bin/chess new file mode 100755 index 0000000..6f7b46d Binary files /dev/null and b/zig-out/bin/chess differ diff --git a/zig-out/lib/libchess.a b/zig-out/lib/libchess.a new file mode 100644 index 0000000..ea75de7 Binary files /dev/null and b/zig-out/lib/libchess.a differ