Re: Minefield prog

6 views
Skip to first unread message

Kerr-Mudd, John

unread,
Jun 4, 2021, 10:25:55 AMJun 4
to
On Tue, 18 May 2021 19:14:52 +0100
"Kerr-Mudd, John" <ad...@nospicedham.127.0.0.1> wrote:

> On Sun, 16 May 2021 13:13:25 +0100
> "Kerr-Mudd, John" <ad...@nospicedham.127.0.0.1> wrote:
>
> > On Sun, 16 May 2021 13:34:20 +0200
> > wolfgang kern <now...@nospicedham.never.at> wrote:
> >
> > > On 16.05.2021 12:01, Kerr-Mudd, John wrote:
> > > > Not in 256 bytes, sadly. But it does come with a pretty border.
>
> Slight improvement 335 bytes (saved 1, now can't toggle already cleared cells)
>
>
Ok 256 bytes (255 actually)
Can only mark/unmark with Space key, very poor mine placement RNG, I can only get 2 out of 3 good colours schemes on exit, so Escape shows black dashes on a brown background where the mines are.


-> d 100 l100
16A2:0100 B8 03 B8 50-B4 BA 50 98-99 CD 10 1F-07 BD 1C 02 ...P..P.........
16A2:0110 E8 74 00 BA-23 0D BF 36-08 B4 02 CD-10 98 CD 16 .t..#..6........
16A2:0120 3C 1B 74 60-88 E0 3C 39-75 16 26 8A-05 B9 23 70 <.t`..<9u.&...#p
16A2:0130 3C 21 74 07-B9 21 7C 3C-23 75 E2 26-89 0D EB DD <!t..!|<#u.&....
16A2:0140 3C 4B 75 08-80 FA 16 74-D4 4A 4F 4F-3C 4D 75 07 <Ku....t.JOO<Mu.
16A2:0150 80 FA 30 74-C8 42 AF B3-A0 3C 48 75-09 80 FE 03 ..0t.B...<Hu....
16A2:0160 74 BB FE CE-29 DF 3C 50-75 09 80 FE-16 74 AE FE t...).<Pu....t..
16A2:0170 C6 01 DF 3C-1C 75 A2 80-3D 2A 73 08-E8 4C 00 75 ...<.u..=*s..L.u
16A2:0180 98 B8 17 1D-35 36 61 BF-DC 01 B1 14-B5 1B 50 09 ....56a.......P.
16A2:0190 D2 74 11 80-3D 2A 73 1D-B8 58 7B 26-80 3D 21 74 .t..=*s..X{&.=!t
16A2:01A0 14 AF EB 12-E4 40 24 46-75 08 4D E8-2E 00 C7 05 .....@$Fu.M.....
16A2:01B0 2A 7C B8 23-70 AB 58 FE-CD 75 D3 83-C7 6A E2 CC *|.#p.X..u...j..
16A2:01C0 C3 88 C4 0D-30 70 26 89-05 4D C3 26-80 3D 23 75 ....0p&..M.&.=#u
16A2:01D0 F9 8B 05 3C-20 75 EA E8-EC FF 74 EE-51 57 B1 03 ...< u....t.QW..
16A2:01E0 81 EF A2 00-B5 03 09 D2-74 05 E8 DE-FF 74 0D FE ........t....t..
16A2:01F0 05 AF FE CD-75 F0 81 C7-9A 00 E2 E8-5F 59 C3 00 ....u......._Y..



--
Bah, and indeed Humbug.

Kerr-Mudd, John

unread,
Jun 21, 2021, 8:35:55 AMJun 21
to
On Fri, 4 Jun 2021 15:11:22 +0100
"Kerr-Mudd, John" <ad...@nospicedham.127.0.0.1> wrote:

> On Tue, 18 May 2021 19:14:52 +0100
> "Kerr-Mudd, John" <ad...@nospicedham.127.0.0.1> wrote:
>
> > On Sun, 16 May 2021 13:13:25 +0100
> > "Kerr-Mudd, John" <ad...@nospicedham.127.0.0.1> wrote:
> >
> > > On Sun, 16 May 2021 13:34:20 +0200
> > > wolfgang kern <now...@nospicedham.never.at> wrote:
> > >
> > > > On 16.05.2021 12:01, Kerr-Mudd, John wrote:
> > > > > Not in 256 bytes, sadly. But it does come with a pretty border.
> >
> > Slight improvement 335 bytes (saved 1, now can't toggle already cleared cells)
> >
> >
> Ok 256 bytes (255 actually)
> Can only mark/unmark with Space key, very poor mine placement RNG, I can only get 2 out of 3 good colours schemes on exit, so Escape shows black dashes on a brown background where the mines are.
>
I really, really wanted to make the ! coloured, but that takes me to 258;
still monochrome; filled in bkgd this time!

uses LU for toggling marked location #->!->?->#, l254

-> d 100 l100
16A2:0100 B8 03 B8 50-B4 BA 50 98-99 CD 10 1F-07 BD 1C 02 ...P..P.........
16A2:0110 E8 6F 00 BA-23 0D BF 36-08 B4 02 CD-10 98 CD 16 .o..#..6........
16A2:0120 3C 1B 74 5B-88 E0 3C 39-75 11 B1 04-BE FA 01 2E <.t[..<9u.......
16A2:0130 AC 26 3A 05-E0 F9 E3 03-2E A4 4F 3C-4B 75 08 80 .&:.......O<Ku..
16A2:0140 FA 16 74 D9-4A 4F 4F 3C-4D 75 07 80-FA 30 74 CD ..t.JOO<Mu...0t.
16A2:0150 42 AF B3 A0-3C 48 75 09-80 FE 03 74-C0 FE CE 29 B...<Hu....t...)
16A2:0160 DF 3C 50 75-09 80 FE 16-74 B3 FE C6-01 DF 3C 1C .<Pu....t.....<.
16A2:0170 75 A7 80 3D-2A 73 08 E8-4C 00 75 9D-B8 17 1D 35 u..=*s..L.u....5
16A2:0180 36 61 BF DC-01 B1 14 B5-1B 50 09 D2-74 11 80 3D 6a.......P..t..=
16A2:0190 2A 73 1D B8-58 7B 26 80-3D 21 74 14-AF EB 12 E4 *s..X{&.=!t.....
16A2:01A0 40 24 46 75-08 4D E8 2E-00 C7 05 2A-7C B8 23 70 @$Fu.M.....*|.#p
16A2:01B0 AB 58 FE CD-75 D3 83 C7-6A E2 CC C3-88 C4 0D 30 .X..u...j......0
16A2:01C0 70 26 88 05-4D C3 26 80-3D 23 75 F9-8A 05 3C 20 p&..M.&.=#u...<
16A2:01D0 75 EA E8 EC-FF 74 EE 51-57 B1 03 81-EF A2 00 B5 u....t.QW.......
16A2:01E0 03 09 D2 74-05 E8 DE FF-74 0D FE 05-AF FE CD 75 ...t....t......u
16A2:01F0 F0 81 C7 9A-00 E2 E8 5F-59 C3 23 21-3F 23 ......._Y.#!?#

Kerr-Mudd, John

unread,
Aug 17, 2021, 9:00:27 AMAug 17
to
On Mon, 21 Jun 2021 13:25:03 +0100
"Kerr-Mudd, John" <ad...@nospicedham.127.0.0.1> wrote:

> On Fri, 4 Jun 2021 15:11:22 +0100
> "Kerr-Mudd, John" <ad...@nospicedham.127.0.0.1> wrote:
>
> > On Tue, 18 May 2021 19:14:52 +0100
> > "Kerr-Mudd, John" <ad...@nospicedham.127.0.0.1> wrote:
> >
> > > On Sun, 16 May 2021 13:13:25 +0100
> > > "Kerr-Mudd, John" <ad...@nospicedham.127.0.0.1> wrote:
> > >
> > > > On Sun, 16 May 2021 13:34:20 +0200
> > > > wolfgang kern <now...@nospicedham.never.at> wrote:
> > > >
> > > > > On 16.05.2021 12:01, Kerr-Mudd, John wrote:
> > > > > > Not in 256 bytes, sadly. But it does come with a pretty border.
> > >
> > > Slight improvement 335 bytes (saved 1, now can't toggle already cleared cells)
> > >
> > >
> > Ok 256 bytes (255 actually)
> > Can only mark/unmark with Space key, very poor mine placement RNG, I can only get 2 out of 3 good colours schemes on exit, so Escape shows black dashes on a brown background where the mines are.
> >
> I really, really wanted to make the ! coloured, but that takes me to 258;
> still monochrome; filled in bkgd this time!
>
> uses LU for toggling marked location #->!->?->#,


Colo(u)r version in 256
Numbers are coloured by erm the number amount (so 1 is blue, 2 is green etc)

There's a known bug that if one incorrectly make marks (space toggle) mines in open space, then the clear rtn will show them as numbers. fixing this is 2 bytes, but 2 too many!



-> d 100 l200
16A2:0100 B8 03 B8 50-B4 BA 50 98-99 CD 10 1F-07 BD 1C 02 ...P..P.........
16A2:0110 E8 6F 00 BA-23 0D BF 36-08 B4 02 CD-10 98 CD 16 .o..#..6........
16A2:0120 3C 1B 74 5B-88 E0 3C 39-75 11 B1 05-BE F8 01 26 <.t[..<9u......&
16A2:0130 3A 05 2E AD-E0 F9 E3 03-26 89 05 3C-4B 75 08 80 :.......&..<Ku..
16A2:0140 FA 16 74 D9-4A 4F 4F 3C-4D 75 07 80-FA 30 74 CD ..t.JOO<Mu...0t.
16A2:0150 42 AF B3 A0-3C 48 75 09-80 FE 03 74-C0 FE CE 29 B...<Hu....t...)
16A2:0160 DF 3C 50 75-09 80 FE 16-74 B3 FE C6-01 DF 3C 1C .<Pu....t.....<.
16A2:0170 75 A7 80 3D-20 72 08 E8-49 00 75 9D-B8 17 1D 35 u..= r..I.u....5
16A2:0180 36 61 BF 72-01 B1 14 83-C7 6A B5 1B-50 09 D2 74 6a.r.....j..P..t
16A2:0190 11 80 3D 20-72 1B B8 58-7B 26 80 3D-21 74 12 AF ..= r..X{&.=!t..
16A2:01A0 EB 10 E4 40-24 46 75 06-4D 88 05 E8-27 00 B8 23 ...@$Fu.M...'..#
16A2:01B0 70 AB 58 FE-CD 75 D5 E2-CE C3 08 C4-0C 30 26 89 p.X..u.......0&.
16A2:01C0 05 4D C3 26-80 3D 23 75-F9 B8 20 70-32 05 75 EA .M.&.=#u.. p2.u.
16A2:01D0 E8 EB FF 74-ED 51 57 B1-03 81 EF A2-00 B5 03 09 ...t.QW.........
16A2:01E0 D2 74 05 E8-DD FF 74 0D-FE 05 AF FE-CD 75 F0 81 .t....t......u..
16A2:01F0 C7 9A 00 E2-E8 5F 59 C3-3F 70 23 70-21 7C 3F 70 ....._Y.?p#p!|?p

Kerr-Mudd, John

unread,
Aug 18, 2021, 4:51:36 PMAug 18
to
On Tue, 17 Aug 2021 13:52:15 +0100
"Kerr-Mudd, John" <ad...@nospicedham.127.0.0.1> wrote:

> On Mon, 21 Jun 2021 13:25:03 +0100
> "Kerr-Mudd, John" <ad...@nospicedham.127.0.0.1> wrote:
>

>
> Colo(u)r version in 256
> Numbers are coloured by erm the number amount (so 1 is blue, 2 is green etc)
>
> There's a known bug that if one incorrectly make marks (space toggle) mines in open space, then the clear rtn will show them as numbers. fixing this is 2 bytes, but 2 too many!
>
>
"Fixed" but only by allowing toggle on any square.

16A6:0100 B8 03 B8 50-B4 BA 50 98-99 CD 10 1F-07 BD 1C 02 ...P..P.........
16A6:0110 E8 6D 00 BA-23 0D BF 36-08 B4 02 CD-10 98 CD 16 .m..#..6........
16A6:0120 3C 1B 74 59-88 E0 3C 39-75 0F B1 04-BE F8 01 26 <.tY..<9u......&
16A6:0130 3A 05 2E AD-E0 F9 26 89-05 3C 4B 75-08 80 FA 16 :.....&..<Ku....
16A6:0140 74 DB 4A 4F-4F 3C 4D 75-07 80 FA 30-74 CF 42 AF t.JOO<Mu...0t.B.
16A6:0150 B3 A0 3C 48-75 09 80 FE-03 74 C2 FE-CE 29 DF 3C ..<Hu....t...).<
16A6:0160 50 75 09 80-FE 16 74 B5-FE C6 01 DF-3C 1C 75 A9 Pu....t.....<.u.
16A6:0170 80 3D 20 72-08 E8 49 00-75 9F B8 17-1D 35 36 61 .= r..I.u....56a
16A6:0180 BF 72 01 B1-14 83 C7 6A-B5 1B 50 09-D2 74 11 80 .r.....j..P..t..
16A6:0190 3D 20 72 1B-B8 58 7B 26-80 3D 21 74-12 AF EB 10 = r..X{&.=!t....
16A6:01A0 E4 40 24 46-75 06 4D 88-05 E8 27 00-B8 23 70 AB .@$Fu.M...'..#p.
16A6:01B0 58 FE CD 75-D5 E2 CE C3-08 C4 0C 30-26 89 05 4D X..u.......0&..M
16A6:01C0 C3 26 80 3D-23 75 F9 B8-20 70 32 05-75 EA E8 EB .&.=#u.. p2.u...
16A6:01D0 FF 74 ED 51-57 B1 03 81-EF A2 00 B5-03 09 D2 74 .t.QW..........t
16A6:01E0 07 E8 DD FF-74 0F 75 02-FE 05 AF FE-CD 75 EE 81 ....t.u......u..
16A6:01F0 C7 9A 00 E2-E6 5F 59 C3-23 70 21 7C-3F 70 23 70 ....._Y.#p!|?p#p

std csr move L,R,U,D from int 16, cls from int 10.
Space key to mark as mine (red "!") again for (black) "?", toggle any char to Unknown (black '#')
Number of neighboring mines shown as coloured number.
Enter key to tread on square.
Win shows red '!' for mines,
Lose shows purple '*' for mine: cyan blue 'X' for marking as a mine incorrectly.
Escape key shows mine locations as black '-' on brown; can't have everything!

I'll shutup now.
Reply all
Reply to author
Forward
0 new messages