Thursday, June 22, 2023

From Battleship to Scrabble

Little Kat needed a lot of help with his Battleship final project in Java II. So this summer I said he needed to implement another game in 2 weeks. I chose the game Scrabble. The game itself is not too complicated. However the implementation of the full game was beyond Little Kat's ability.

We made some assumptions. The computer would go first and put a word vertically on the screen. The user would have to put a word horizontally that intersected with the computer word. Whoever got the highest points from their word wins.

There is no double/triple letters or words. There is no bingo. Initially Little Kat had some bugs. But he eventually got the game running pretty well. It scores both player words correctly. It detects when you enter text that is not a word. It detects if your word goes off the screen. It detects if your words does not intersect the computer word. And so on.

Little Kat actually finished his program 1 day early. He wanted to go play D&D on the last day when Scrabble was due to me. Now that his Java game development skill has increased, he can take the summer off to rest for the start of the fall semester.

No comments: