Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

panic: kernel trap (ignored)


devel / comp.os.msdos.programmer / Wordle for DOS in 250 bytes

SubjectAuthor
o Wordle for DOS in 250 bytesKerr-Mudd, John

1
Wordle for DOS in 250 bytes

<20220428134924.f114df0312da04edc33dd5f8@127.0.0.1>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=606&group=comp.os.msdos.programmer#606

  copy link   Newsgroups: comp.os.msdos.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: admin@127.0.0.1 (Kerr-Mudd, John)
Newsgroups: comp.os.msdos.programmer
Subject: Wordle for DOS in 250 bytes
Date: Thu, 28 Apr 2022 13:49:24 +0100
Organization: Dis
Lines: 59
Message-ID: <20220428134924.f114df0312da04edc33dd5f8@127.0.0.1>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="60bd0fdf21e6abdf92d16c110839ca56";
logging-data="8139"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19vCweH/Ufm+WUv57h6jKKJH/Owq9VlU0E="
Cancel-Lock: sha1:nTsls6eLYGCY1pjXC6tV0XvrPPE=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
;X-no-Archive: Maybe
GNU: Terry Pratchett
 by: Kerr-Mudd, John - Thu, 28 Apr 2022 12:49 UTC

DOS program for Wordle ; was 380 ish bytes but by deleting text messages and disallowing backspace I have a version in under 256 bytes. Tested in a CMD box on an XP machine.

You'll need to supply the wordlist file ("wordle2u.lst"); each word must be 5 letters in caps followed by 2 intervening chars (i.e double space or a crlf pair). The list must be in alphabetical sort order. I can post that if required. [I don't think ETUDE is a valid word; I changed it to EXUDE]

Keys are A-Z,a-z, CsrL/R, Enter, Esc; uses BIOS for chr to scrn and keyin. 6 goes to win. exact match letters shown in reverse green, nearby chrs shown in reverse brown. 'Words' not on the list aren't tested, don't count as guesses.

The randomising code is quite a botch, and there's a known problem with the cursor not appearing 1) at start, 2) disappearing on 5th char input. I can't seem to fix that.

-> d 100 l100
16AB:0100 BA ED 01 89-D7 B4 3D CD-21 93 B5 FF-B4 3F CD 21 ......=.!....?.!
16AB:0110 01 D0 95 B4-2A CD 21 92-B9 07 00 F7-E0 88 E0 88 ....*.!.........
16AB:0120 D4 31 D2 F7-E1 01 F8 09-D2 75 F0 39-E8 77 EC 50 .1.......u.9.w.P
16AB:0130 B8 00 B8 50-1F B8 03 00-CD 10 5F BE-8A 01 B6 04 ...P......_.....
16AB:0140 81 C6 40 01-B2 25 88 E0-3C 4D 74 29-3C 4B 74 2B ..@..%..<Mt)<Kt+
16AB:0150 31 DB B4 02-CD 10 98 CD-16 3C 0D 74-2F 3C 1B 74 1........<.t/<.t
16AB:0160 2A 24 DF 74-E1 B4 07 50-2C 41 72 02-04 E6 58 72 *$.t...P,Ar...Xr
16AB:0170 E5 B4 0E CD-10 42 80 FA-2A 75 D5 80-FA 25 74 D6 .....B..*u...%t.
16AB:0180 4A EB CD 80-C6 02 80 FE-10 72 B5 C3-56 57 BF E7 J........r..VW..
16AB:0190 01 AC B1 05-47 01 CF 39-EF 77 0F AE-77 F6 72 0A ....G..9.w..w.r.
16AB:01A0 56 57 46 A6-E1 FC 5F 5E-75 E8 5F 5E-75 96 BB 20 VWF..._^u._^u..
16AB:01B0 0A 56 57 4E-B1 05 B4 05-46 A6 88 39-75 06 88 1C .VWN....F..9u...
16AB:01C0 88 19 FE CC-E2 F2 5F 5E-74 C1 56 B1-05 AD 38 DC ......_^t.V...8.
16AB:01D0 74 16 51 B1-05 57 E3 0E-F2 AE 75 0A-38 19 74 F6 t.Q..W....u.8.t.
16AB:01E0 C6 44 FF 60-88 19 5F 59-E2 E3 5E EB-96 77 6F 72 .D.`.._Y..^..wor
16AB:01F0 64 6C 65 32-75 2E 74 78-74 00 20 20-20 20 20 20 dle2u.txt.
-> q

(spoiler

today's word is OLIVE

--
Bah, and indeed Humbug.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor