Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  login

The disks are getting full; purge a file today.


programming / alt.lang.asm / Re: Minefield prog

SubjectAuthor
* Re: Minefield progKerr-Mudd, John
`* Re: Minefield progKerr-Mudd, John
 `* Re: Minefield progKerr-Mudd, John
  `- Re: Minefield progKerr-Mudd, John

1
Subject: Re: Minefield prog
From: Kerr-Mudd, John
Newsgroups: comp.lang.asm.x86, alt.comp.programmer, alt.lang.asm
Organization: Dis
Date: Fri, 4 Jun 2021 14:11 UTC
References: 1 2 3 4
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: adm...@nospicedham.127.0.0.1 (Kerr-Mudd, John)
Newsgroups: comp.lang.asm.x86,alt.comp.programmer,alt.lang.asm
Subject: Re: Minefield prog
Date: Fri, 4 Jun 2021 15:11:22 +0100
Organization: Dis
Lines: 42
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <20210604151122.d06b5bd8a6a97273c8fc5d41@127.0.0.1>
References: <20210516110156.8f89bfcab90181a033e01ed8@127.0.0.1>
<s7r06e$lr$1@gioia.aioe.org>
<20210516131325.dfa698bf0be0bcbff95dd0b6@127.0.0.1>
<20210518191452.aebb7891389718cfbb0bc033@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="687765f0e654537fc116ed0e3d1360aa";
logging-data="28090"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Bnh9mJgeXW6PfHT9elgItYiCcV/6+MgI="
Cancel-Lock: sha1:EcK2AjCavcAQ/A+k/d3Vczt6R/s=
View all headers
On Tue, 18 May 2021 19:14:52 +0100
"Kerr-Mudd, John" <admin@nospicedham.127.0.0.1> wrote:

On Sun, 16 May 2021 13:13:25 +0100
"Kerr-Mudd, John" <admin@nospicedham.127.0.0.1> wrote:

On Sun, 16 May 2021 13:34:20 +0200
wolfgang kern <nowhere@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.



Subject: Re: Minefield prog
From: Kerr-Mudd, John
Newsgroups: comp.lang.asm.x86, alt.comp.programmer, alt.lang.asm
Organization: Dis
Date: Mon, 21 Jun 2021 12:25 UTC
References: 1 2 3 4 5
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: adm...@nospicedham.127.0.0.1 (Kerr-Mudd, John)
Newsgroups: comp.lang.asm.x86,alt.comp.programmer,alt.lang.asm
Subject: Re: Minefield prog
Date: Mon, 21 Jun 2021 13:25:03 +0100
Organization: Dis
Lines: 48
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <20210621132503.4e2f2d5f5c7026130f461311@127.0.0.1>
References: <20210516110156.8f89bfcab90181a033e01ed8@127.0.0.1>
<s7r06e$lr$1@gioia.aioe.org>
<20210516131325.dfa698bf0be0bcbff95dd0b6@127.0.0.1>
<20210518191452.aebb7891389718cfbb0bc033@127.0.0.1>
<20210604151122.d06b5bd8a6a97273c8fc5d41@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="e2c73e34b8243c609247fe11f278e0ad";
logging-data="10635"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19BSQHfr98U7qvEAqWIcs2Z4RvdZTAwBkQ="
Cancel-Lock: sha1:MhARmpEd7/3LEyrJCYrWBqWdt9U=
View all headers
On Fri, 4 Jun 2021 15:11:22 +0100
"Kerr-Mudd, John" <admin@nospicedham.127.0.0.1> wrote:

On Tue, 18 May 2021 19:14:52 +0100
"Kerr-Mudd, John" <admin@nospicedham.127.0.0.1> wrote:

On Sun, 16 May 2021 13:13:25 +0100
"Kerr-Mudd, John" <admin@nospicedham.127.0.0.1> wrote:

On Sun, 16 May 2021 13:34:20 +0200
wolfgang kern <nowhere@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.#!?#


--
Bah, and indeed Humbug.



Subject: Re: Minefield prog
From: Kerr-Mudd, John
Newsgroups: comp.lang.asm.x86, alt.comp.programmer, alt.lang.asm
Organization: Dis
Date: Tue, 17 Aug 2021 12:52 UTC
References: 1 2 3 4 5 6
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: adm...@nospicedham.127.0.0.1 (Kerr-Mudd, John)
Newsgroups: comp.lang.asm.x86,alt.comp.programmer,alt.lang.asm
Subject: Re: Minefield prog
Date: Tue, 17 Aug 2021 13:52:15 +0100
Organization: Dis
Lines: 66
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <20210817135215.2a9c3c9618767c04749257df@127.0.0.1>
References: <20210516110156.8f89bfcab90181a033e01ed8@127.0.0.1>
<s7r06e$lr$1@gioia.aioe.org>
<20210516131325.dfa698bf0be0bcbff95dd0b6@127.0.0.1>
<20210518191452.aebb7891389718cfbb0bc033@127.0.0.1>
<20210604151122.d06b5bd8a6a97273c8fc5d41@127.0.0.1>
<20210621132503.4e2f2d5f5c7026130f461311@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="26d10c42a2bf27e75a49b278bec8dd62";
logging-data="1866"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+TW4wZ69+DD83CgJ1pxXL9/t7H/HYxnjc="
Cancel-Lock: sha1:nQY8AtWcqT62nIO0RmcZbsohdgg=
View all headers
On Mon, 21 Jun 2021 13:25:03 +0100
"Kerr-Mudd, John" <admin@nospicedham.127.0.0.1> wrote:

On Fri, 4 Jun 2021 15:11:22 +0100
"Kerr-Mudd, John" <admin@nospicedham.127.0.0.1> wrote:

On Tue, 18 May 2021 19:14:52 +0100
"Kerr-Mudd, John" <admin@nospicedham.127.0.0.1> wrote:

On Sun, 16 May 2021 13:13:25 +0100
"Kerr-Mudd, John" <admin@nospicedham.127.0.0.1> wrote:

On Sun, 16 May 2021 13:34:20 +0200
wolfgang kern <nowhere@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


 

--
Bah, and indeed Humbug.



--
Bah, and indeed Humbug.



Subject: Re: Minefield prog
From: Kerr-Mudd, John
Newsgroups: comp.lang.asm.x86, alt.comp.programmer, alt.lang.asm
Organization: Dis
Date: Wed, 18 Aug 2021 20:43 UTC
References: 1 2 3 4 5 6 7
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: adm...@nospicedham.127.0.0.1 (Kerr-Mudd, John)
Newsgroups: comp.lang.asm.x86,alt.comp.programmer,alt.lang.asm
Subject: Re: Minefield prog
Date: Wed, 18 Aug 2021 21:43:00 +0100
Organization: Dis
Lines: 45
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <20210818214300.cf9d32f62d3612d31c5d495c@127.0.0.1>
References: <20210516110156.8f89bfcab90181a033e01ed8@127.0.0.1>
<s7r06e$lr$1@gioia.aioe.org>
<20210516131325.dfa698bf0be0bcbff95dd0b6@127.0.0.1>
<20210518191452.aebb7891389718cfbb0bc033@127.0.0.1>
<20210604151122.d06b5bd8a6a97273c8fc5d41@127.0.0.1>
<20210621132503.4e2f2d5f5c7026130f461311@127.0.0.1>
<20210817135215.2a9c3c9618767c04749257df@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="21dccdb8fdb72e02e5a83da777b53475";
logging-data="1314"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18oUfCzar5GGpkMRusYCTpUGAiVQAoIc9I="
Cancel-Lock: sha1:8D0tE6t95AUxtuwYhlfjyo8tAn8=
View all headers
On Tue, 17 Aug 2021 13:52:15 +0100
"Kerr-Mudd, John" <admin@nospicedham.127.0.0.1> wrote:

On Mon, 21 Jun 2021 13:25:03 +0100
"Kerr-Mudd, John" <admin@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.
--
Bah, and indeed Humbug.



1
rocksolid light 0.7.2
clearneti2ptor