News for hackers. Stuff that matters.
Re:Battleship by evil-olive on Saturday April 02, 2022 @07:15PM (#30892537)
not exactly the same because it's not playing an established human vs. human game such as Battleship, but Core War [0] from 1984 is the earliest example of this idea that I'm aware of.

> At the beginning of a game, each battle program is loaded into memory at a random location, after which each program executes one instruction in turn. The goal of the game is to cause the processes of opposing programs to terminate (which happens if they execute an invalid instruction), leaving the victorious program in sole possession of the machine.

Battlecode [1] from MIT seems to be along similar lines as well

0: https://en.wikipedia.org/wiki/Core_War

1: https://battlecode.org/

Re:Battleship by jhbadger on Saturday April 02, 2022 @08:48PM (#30893118)
Corewar may be the first example of the game in its purest form, but earlier than that was Robotwar (first on the PLATO system in the 1970s then on the Apple ][ in 1981) which involved players writing simple programs to control robots in a BASIC like language. You could either compete against a friend or compete against a series of programs included with the game.

https://en.wikipedia.org/wiki/RobotWar