News for hackers. Stuff that matters.
Re:Show HN: Play Battleships on PostgreSQL by spalas on Tuesday September 22, 2020 @07:41AM (#24553344)
Ha! I attempted this a while back but never came up with a good solution for handling user inputs so it was just the computer playing itself...

https://github.com/sidpalas/battleship-sql

This is next level!

Re:Show HN: Play Battleships on PostgreSQL by tyingq on Tuesday September 22, 2020 @08:12AM (#24553549)
Looks like they are getting the user input from the postgres log: https://github.com/Firemoon777/sql-battleships/blob/master/k...
Re:Show HN: Play Battleships on PostgreSQL by spalas on Tuesday September 22, 2020 @09:17AM (#24554041)
Yeah -- Using the second session for grabbing inputs is clever!