Skip to content
View in the app

A better way to browse. Learn more.

Gamercide

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Welcome back to Gamercide!

Battleship Fail

Featured Replies

So last semester for CompSci I had to program the classic boardgame, Battleship. Pretty basic and nothing too complicated since it only had to be played by users and no AI components. Well out of boredom today, I started making an AI algorithm so a player could play against the computer. Six hours later, the AI structure is complete and ready to be tested. Turns out the human player only has 0.27% chance of winning against the computer. My AI is too smart, fail.

man, if that's a fail, i'd hate to see what you'd call my attempt at making ai.

i'd open paint or something, sit there for about three minutes, then admit defeat.

  • Author

I did play it and never came close to beating it. The AI is too smart so I need to dumb it down unsure.gif

id kick its *** in battleship

You should talk to Hasbro, they have AI in Battleship for XBLA. :) It's beatable though. It tends to just strike the board in a checkerboard pattern.

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.