12-06-2024 09:21 AM
Hello,
I have a project due next week. I've been working on it for a month, but I still can't get it to work. It's a tic-tac-toe game. I managed to make the tic-tac-toe part functional, but the network connection part doesn't work. When I add it, nothing works anymore. Could you please help me? Since I started with booleans, I have to stick with them because our professor wants to see our progression, so I can't switch to arrays.
Would it be possible to get some help? This is very important.
I have attached my tic-tac-toe without the network connection, which works, and what I tried to do for my client and server code.
Thanks Yoo
12-06-2024 11:03 AM - edited 12-06-2024 11:32 AM
@yoo0987 wrote:
Would it be possible to get some help? This is very important.
This task it to test your programming skills and if we do it for you, that would be misleading. We can definitely give some hints, but you must make it easier for us by using reasonable file names, attaching well documented code and telling us exactly how everything should be used. You don't seem to do any error handing. Do you get any errors?
Personally, I would use UDP and design messages that have full information about the current board state (ID key to validate the message related to this game, Current board, room for OOB messages such as "I give up", etc.). Given the current board, the player for the current turn can be determined by just counting pieces.
12-06-2024 03:10 PM
Here are my two files, server and client, renamed correctly.
Thank you for your response. Here are some detailed explanations about my setup and the issue I’m encountering:
Network Configuration and usage :
Issue encoutered :
I don't know how to do that :The player whose turn it is can be determined simply by counting the pieces, because I try but it doesn't work 😞
12-06-2024 04:27 PM
Did you notice that the empty array in the shift register remains empty forever because you never use the output from the event structure?
12-07-2024 09:30 AM
Thank you very much, it solved my problem with displaying the victory conditions, but the issue with displaying the move in the client's table still doesn't work.
I am attaching my two updated VI, revised according to your feedback.