The challenges have descriptions within their .wat files, but it some cases it will also be useful to look inside tests.mjs to better understand the d

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2024-12-24 23:00:16

The challenges have descriptions within their .wat files, but it some cases it will also be useful to look inside tests.mjs to better understand the different test cases.

These challenges assume you have a programming background and are comfortable with some low-level concepts such as binary representations, bitwise operations, memory and pointers.

The challenges aren't designed to teach you WAT syntax or WebAssembly instructions directly, so you'll probably need to do some reading alongside.

Whilst not technically a reference, I found the WebAssembly core test suite incredibly helpful for some exhaustive learning about the various instructions. The files are .wast and they include some testing directives, but otherwise they are all valid .wat.

The poker exercises require you to read values from five cards, which are stored in memory as pairs of u8 values. The first is the rank value and the second is the suit value.

Leave a Comment