SunOfABeach Posted October 28, 2018 Share Posted October 28, 2018 I made a classic battleship game that you can play against others or an AI. To challenge myself, I did it without any game framework, not even canvas. Just raw HTML5 element manipulation. It's also fully responsive and mobile first. http://www.battleship-online.com The code: https://github.com/Sun0fABeach/battleship_online vasilii and nazimboudeffa 2 Quote Link to comment Share on other sites More sharing options...
Matty77 Posted October 28, 2018 Share Posted October 28, 2018 Tried it on mobile....couldn't get past this: Quote Link to comment Share on other sites More sharing options...
SunOfABeach Posted October 30, 2018 Author Share Posted October 30, 2018 On 10/28/2018 at 8:36 PM, Matty77 said: Tried it on mobile....couldn't get past this: That ain't cool. Can you tell me what phone / browser you are using? Quote Link to comment Share on other sites More sharing options...
Matty77 Posted October 30, 2018 Share Posted October 30, 2018 Samsung S4 Galaxy - standard default inbuilt browser. Quote Link to comment Share on other sites More sharing options...
Wolfsbane Posted October 30, 2018 Share Posted October 30, 2018 I feel like having single square ships is a mistake. Part of the decision making in battleships is judging the likelihood of where a ship might be... meaning you can try different shot patterns, and skip certain squares/corners, because you know it won't fit there. Now it's just blind luck with one square ships. Otherwise, works well. If this was made as a challenge, how long did it take to make, may I ask? b10b 1 Quote Link to comment Share on other sites More sharing options...
SunOfABeach Posted October 31, 2018 Author Share Posted October 31, 2018 13 hours ago, Matty77 said: Samsung S4 Galaxy - standard default inbuilt browser. On my S5 using the standard builtin browser (Samsung Internet v7.4), it works. I transpile my ES6 to support the last 3 major versions of each browser, except IE. Are you running the latest version? 12 hours ago, Wolfsbane said: I feel like having single square ships is a mistake. Part of the decision making in battleships is judging the likelihood of where a ship might be... meaning you can try different shot patterns, and skip certain squares/corners, because you know it won't fit there. Now it's just blind luck with one square ships. Otherwise, works well. If this was made as a challenge, how long did it take to make, may I ask? I totally hear you. Most games I played ended with searching for those last single square ships, which is a total guessing game. It might be better to make two squares the smallest variant and introduce a 5 or 6 square carrier or something. It took me about two months to complete, spending 2-3h per day. I had to learn Node/Express, socket.io, Webpack and Bootstrap for this project, so that slowed things down a little. Quote Link to comment Share on other sites More sharing options...
Matty77 Posted October 31, 2018 Share Posted October 31, 2018 I don't think I've ever updated the browser on this phone. Same one since 2014. Quote Link to comment Share on other sites More sharing options...
SunOfABeach Posted November 1, 2018 Author Share Posted November 1, 2018 22 hours ago, Matty77 said: I don't think I've ever updated the browser on this phone. Same one since 2014. If that's the case... I'm afraid I don't support your phone. ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.