Jump to content

Zlatoun

Members
  • Posts

    7
  • Joined

  • Last visited

LabVIEW Information

  • Version
    LabVIEW 2023
  • Since
    2023

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Zlatoun's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. OK thank you very much! Your really helped me a lot for with my project.
  2. I would like to display once it reaches 10 for the player or the goalkeeper.
  3. Thank you, the project is now functional. My last problem is that I don't understand how to display "player wins" or "goalkeeper wins" in the "who wins?" string indicator.
  4. Here's my project's link. Projet V2.vi
  5. Thank you, you have helped me greatly. I have taken what you have done and redone it myself to understand it. I changed the while loop stop condition so that the match stops when one of the two has reached 10 points. Now I would like to store the scores in a graph and a table that update in real time. For the graph everything works as expected but I can't link the table. Do you have an idea how to make it works. I would also like to put a message that says if the goalkeeper or the player, should I use a case structure and put it at the output of the event structure?
  6. Hello, I have indeed started coding. So far, I have tried to create the part where the player chooses to shoot either in the center, right, or left. I associate each direction with a number from 1 to 3 using a switch-case structure, and then compare it to the random number generator. If they are equal, the goalkeeper's score increases by 1, and if they are different, the player wins 1 point. For this, I use a shift register to initialize both scores, and then use two cases for the increment of either score. My problem for now is that both scores increase at the same time, the player's score starts at 1 instead of 0, and another minor issue is that the LED indicating if the goalkeeper stops the shot never turns on. How could I improve and correct these errors?
  7. Hi, I would like to create a project but I am new to Labview. I would like to simulate a penalty shootout where a user chooses a direction to shoot (center, right, or left) and an opposing goalkeeper simulated by a random number generator (ranging from 1 to 3) determines where the goalkeeper dives and if they dive on the same side as the shot, they stop it. When they stop a shot their score increases by 1, but if they don't stop it, the player's score increases by 1 and the game ends when one of the two reaches 5 (with a while loop). The score is displayed in a table with multiple rows and the score's progress is visible through a graph. Could someone give me some advice on how to do this?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.