Bull & Cows - Issues

Hello all,

From the heading of the topic it might look like I’m asking a question about programming or otherwise about the game Bull and Cows but I am not. The thing is when I heard about the rules of this game my mind started railing against it big time. I have never heard about this game or played it as a child (in Australia) - the idea that you don’t tell the user that the letters are actually in the right spot only through some illusion that one or more of the letters are right by using a Bull really, really annoyed me and then there were the cows - no comment. The idea of an isogram was cool and that that would be the bright spot of the challenge. So I went and made a console app (because the compile times are a mess in Unreal) to see how I would solve the isogram challenge it took all of ten minutes to solve, I thought about it and the idea came straight out, and just coded it. My brain actually figured it out, felt nice for a change! I had a little bit of code added to test it out and tested it out with the word “Mississippi” to see if it would give me the correct answer and it did - iirc it was 13 pair of double letters, definitely not an isogram - cool :sunglasses:. But after that I still felt uneasy about making that into a game - seeing as I hated it, I changed it to tell the user which letters where in the right spot. Then it hit me I was basically making a Hangman game, so … then I started a new console app.

The Hangman game was a greater challenge than I had anticipated I had some real problems with the use of strings and chars and the arrays. If I had been more aware of the programming language and how those things worked it would’ve been much easier, but, earlier today I got it working. Not totally happy with the logic of the “main” loop but I am used to Unity, and have been playing a LOT of guitar lately.

So, now, that I am somewhat happy with the game I have, I now I am going to have figure out how to covert the code to work on the “console” actor and how differently strings and things work in Unreal, it’s going to be fun now, and frustrating and hair pulling and a lot of whiskey, tango, foxtrot. In any case I am now looking forward to it. Might even make some 3D graphics to build the hangman when they get a guess wrong - might!

Cheers.

Last night, I was having a devil of a time getting the game to compile, my goodness Unreal is slow and with errors galore, thereby needing another slow compile. Unreal C++ is a very different beast to normal C++. I also actually managed to crash the Unreal engine a number of times and it wanted to send off a crash report to Epic- anywayz, I showed a couple of family members a game of Bull and Cows with pen and paper and explained the rules as I went along, gave them a 5 letter word to guess and they didn’t even get close - and they didn’t enjoy the experience either. So, I feel a little vindicated in dumping the challenge to something else.

Like, I mentioned lots of whiskey, tango, foxtrot working with the strings in Unreal. getting things I need to show up on the terminal actor with PrintLine has been nothing short of a nightmare.

Privacy & Terms