Game Logic

Hello everyone, I've build a program that simulates a scenario where three numbers are input by the user, and the program calculates the waiting time and movement between three cells for optimal and fastest time to get to the end. But now I am stuck. Why does it output "31" when you put 5 in zahl1, 8 in zahl2 and 21 in zahl3 when it should say 24 since that would be the most optimal path? Here is the code in Hastebin: https://hastebin.skyra.pw/giculutadi.csharp The picture is the result when I run the program. I hope someone could help me 🙂
No description
No description
3 Replies
JavaBot
JavaBot•2w ago
⌛ This post has been reserved for your question.
Hey @Silvan! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Kyo-chan
Kyo-chan•2w ago
Sigh. Not mindreaders, and so on. What is that game, what is a cell, what is waiting, blah blah
JavaBot
JavaBot•2w ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
Want results from more Discord servers?
Add your server