Skip to content

File 002-TestCase_ComputerPlayer.cpp

FileList > COD_ENG_OUT_arduino_code > test > 002-TestCase_ComputerPlayer.cpp

Go to the source code of this file

Test cases for the computer player. More...

  • #include <catch2/catch_test_macros.hpp>
  • #include <cstdint>
  • #include <iostream>
  • #include <logic.hpp>

Public Functions

Type Name
TEST_CASE ()
TEST_CASE ("Test Professor V2", "")
TEST_CASE ("Test Auto_Move", "")
TEST_CASE ("Test Auto_Move into Finish while manual player is in finish", "")
TEST_CASE ("Test if player throws himself", "")
TEST_CASE ("Test if player throws himself in and before finish", "")
TEST_CASE ("Big test for professor mode", "")

Detailed Description

This file contains multiple game situations for testing the behavior of the computer player. It covers various situations in which the computer player has to make decisions and move tokens with different start conditions.

Public Functions Documentation

function TEST_CASE

TEST_CASE () 

function TEST_CASE

TEST_CASE (
    "Test Professor V2",
    ""
) 

function TEST_CASE

TEST_CASE (
    "Test Auto_Move",
    ""
) 

function TEST_CASE

TEST_CASE (
    "Test Auto_Move into Finish while manual player is in finish",
    ""
) 

function TEST_CASE

TEST_CASE (
    "Test if player throws himself",
    ""
) 

function TEST_CASE

TEST_CASE (
    "Test if player throws himself in and before finish",
    ""
) 

function TEST_CASE

TEST_CASE (
    "Big test for professor mode",
    ""
) 

The documentation for this class was generated from the following file /home/runner/work/Arduino_DHBW_Spiel/Arduino_DHBW_Spiel/Engineering/COD_ENG_OUT_arduino_code/test/002-TestCase_ComputerPlayer.cpp