• Re: Connect4 for DOS in 255 bytes

    From Kerr-Mudd, John@admin@nospicedham.127.0.0.1 to comp.lang.asm.x86,alt.lang.asm,comp.os.msdos.programmer on Mon Feb 26 12:46:52 2024
    From Newsgroup: comp.os.msdos.programmer

    On Mon, 19 Feb 2024 10:39:55 +0000
    "Kerr-Mudd, John" <admin@nospicedham.127.0.0.1> wrote:

    On Wed, 14 Feb 2024 13:51:23 +0000
    "Kerr-Mudd, John" <admin@nospicedham.127.0.0.1> wrote:

    On Tue, 13 Feb 2024 19:53:32 +0000
    "Kerr-Mudd, John" <admin@nospicedham.127.0.0.1> wrote:

    Been a while, and the thread has expired from my usenet list, but here is a tweaked version - it now hilites the /whole/ row when a win is detected.
    Two player game, no AI (sorry).
    Cursor L/R to move current player's piece, Enter to drop. (Esc to quit). Number of wins at top left & top right above 'board'
    Uses Bios int10 for screen & int16 for keyboard.
    Assumes ax=0 at start to change to 40x25 text mode.

    Smaller, allows space & Enter (and any ASCII key!) to drop
    Must use Csr keys to move L/R.

    Fixed a bug that meant a draw would have been seen before a last
    placement win. "Again" message uses colour of last placed char (usually winner), and put on the base bar.


    Now with (1 move only!) Undo; use Tab or Bkspace.
    (and corrected c.o.m.p NG's name!)

    d 100 lF0
    16B1:0100 B7 B8 8E C3-8E DB CD 10-B8 5F 77 99-B1 06 BF EC ........._w..... 16B1:0110 02 AB 92 51-B1 07 F3 AB-59 92 AB 83-C7 3E E2 F1 ...Q....Y....>.. 16B1:0120 B1 09 F3 AB-B1 2B BD 23-0C BB 4F 0E-38 2D 74 08 .....+.#..O.8-t. 16B1:0130 88 2D 41 49-74 3C 87 EB-BE A4 02 89-1C B4 00 CD .-AIt<.......... 16B1:0140 16 88 2C 3C-00 74 41 3C-1B 74 27 3C-0D 72 DD E8 ..,<.tA<.t'<.r.. 16B1:0150 4C 00 74 E7-72 DD 88 F8-98 B1 03 D3-E0 05 EE 01 L.t.r........... 16B1:0160 97 88 FC 4F-4F B0 30 87-05 0C 30 40-3C 39 77 F3 ...OO.0...0@<9w. 16B1:0170 88 05 93 B1-06 BE EA 01-BF CE 04 2E-AC AB E2 FB ................ 16B1:0180 98 CD 16 24-86 74 81 C3-86 C4 2C 4B-24 02 48 D1 ...$.t....,K$.H. 16B1:0190 E0 01 F0 3C-9E 72 A4 3C-AA 77 A0 96-EB 9D 89 F7 ...<.r.<.w...... 16B1:01A0 83 C7 50 38-2D 74 F9 83-EF 50 39 FE-74 D9 89 1D ..P8-t...P9.t... 16B1:01B0 B2 02 E8 12-00 73 32 B2-B2 E8 0B 00-73 2B 42 42 .....s2.....s+BB 16B1:01C0 E8 04 00 73-24 4A 4A 31-C0 E8 02 00-F7 DA 57 48 ...s$JJ1......WH 16B1:01D0 40 01 D7 39-1D 74 F9 3C-03 72 0D 29-D7 80 4D 01 @..9.t.<.r.)..M. 16B1:01E0 80 29 D7 39-1D 74 F6 F8-5F C3 41 67-61 69 6E 3F .).9.t.._.Again?
    q
    --
    Bah, and indeed Humbug.

    --- Synchronet 3.21d-Linux NewsLink 1.2