repository to manage all files for 1_2_oder_3 interaction game for Inf2/2 Interaktionen SoSe23 from Engert, Caliskan and Bachiri
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ScoreBoard.js 892B

1234567891011121314151617181920212223242526272829303132333435
  1. import React from "react";
  2. function ScoreBoard({teamsize}) {
  3. return(
  4. <div className={"ScoreBoard"}>
  5. <div>
  6. <p>Spieler pro Team: {teamsize ? teamsize : ""}</p>
  7. </div>
  8. <table>
  9. <thead>
  10. <tr>
  11. <th>Team</th>
  12. <th>Points</th>
  13. </tr>
  14. </thead>
  15. <tbody>
  16. <tr>
  17. <td>Red</td>
  18. <td id="red-points">0</td>
  19. </tr>
  20. <tr>
  21. <td>Yellow</td>
  22. <td id="yellow-points">0</td>
  23. </tr>
  24. <tr>
  25. <td>Blue</td>
  26. <td id="blue-points">0</td>
  27. </tr>
  28. </tbody>
  29. </table>
  30. </div>)
  31. }
  32. export default ScoreBoard