Three word location: Difference between revisions

Content added Content deleted
(Added Ada solution)
m (→‎{{header|Wren}}: Minor tidy)
Line 1,595: Line 1,595:


Note that bitwise operations are limited to 32-bit unsigned integers in Wren which isn't big enough here so we use BigInts instead.
Note that bitwise operations are limited to 32-bit unsigned integers in Wren which isn't big enough here so we use BigInts instead.
<syntaxhighlight lang="ecmascript">import "/fmt" for Fmt
<syntaxhighlight lang="wren">import "./fmt" for Fmt
import "/big" for BigInt
import "./big" for BigInt


// functions to convert to and from the word format 'W00000'
// functions to convert to and from the word format 'W00000'