Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding more dynamic handling #128

Merged
merged 6 commits into from
Dec 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 38 additions & 4 deletions rules/game_process.tex
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ \subsubsection{Invalid Goal}

A goal is invalid (that is, it can never be awarded) in the following circumstances:
\begin{enumerate}
\item When an indirect kick is required but has not occurred (see~\cref{sec:indirect_kick}).
\item When an indirect kick is required but has not occurred (see~\cref{sec:indirect_kick_champions}).
\item When the last contact of the ball was with an attacking robot that played the ball with the arms/hands as defined in \cref{sec:hand_ball}.
However, an own goal may be scored by any defending robot playing with arms/hands.
\item When a team scores on themselves and there are no opponent robots on the field that are active (a definition of \emph{active} is given in \cref{sec:fallenrobots}).
Expand All @@ -124,8 +124,42 @@ \subsubsection{Invalid Goal}
In these cases a goal is not scored (that is, the goal is ruled invalid), and the game will proceed with a Goal Kick (\cf \cref{sec:free_kick}).
The head referee should also advise why the goal is invalid, such as by calling ``Not indirect'', ``Played with hands'' or ``No own goal''.

\subsubsection{Indirect Kick}
\label{sec:indirect_kick}
\subsubsection{Indirect Kick - Champions Cup}
\label{sec:indirect_kick_champions}

Both teams may only score a goal through two distinct ball contacts involving different robots within its own team following any affected start or restart in the \texttt{playing} phase, regardless of the initiator of the set play/free kick:

\begin{itemize}
\item A robot may not score a goal from a direct kick, including via deflections.
\item Set plays considered to be indirect are \texttt{Kick-off}, \texttt{Kick-in}, \texttt{Pushing free kick}, \texttt{Corner kick} and \texttt{Goal kick} or after an unsuccessful \texttt{Penalty kick}.
\item The ball must be deliberately played-at a second time by another robot of its own team before a goal may be scored.
A deliberate play at the ball includes successfully kicking the ball, dribbling the ball or the goalkeeper playing at the ball with its hands.
\item If an indirect free kick is kicked directly into the opponent's goal, the goal does not count and a \texttt{Goal kick} is awarded.
\item Note that an own-goal may always be scored without requiring an indirect kick.
\item A direct kick is allowed for the duration of the penalty kick, but this rule still applies after this kick. A contact in the penalty kick count among this rule.
\end{itemize}

\begin{description}
\item[Example 1:] Player 2 (of the red team) kicks the ball to Player~3 (of the red team), who then kicks the ball into the blue-team's goal.
This is a successful indirect kick, and the goal counts.
\item[Example 2:] Player 2 (of the red team) kicks the ball at the goal, and it is deflected off the side of the foot of a blue-team's robot into the goal.
This is \textit{not} an indirect kick, the goal does not count and a \texttt{Goal kick} is awarded to the blue team.
\item[Example 3:] Player 2 (of the red team) kicks the ball ``upfield''.
A blue-team robot kicks the ball a short distance, after which Player~2 kicks the ball again into the blue team's goal.
This is \textit{not} an indirect kick, the goal does not count and a \texttt{Goal kick} is awarded to the blue team.
\item[Example 4:] Player 2 (of the red team), walks up to and dribbles the ball.
Player~2 then stop, and visibly back away from the ball, before approaching to dribble a \textit{second} time. The robot then scores.
This is \textit{not} an indirect kick, the goal does not count and a \texttt{Goal kick} is awarded to the blue team.
\item[Example 5:] Player 2 (of the red team) kicks the ball ``upfield''.
A blue-team robot kicks the ball again into the red team's goal.
This is \textit{not} an indirect kick, the goal does not count and a \texttt{Goal kick} is awarded to the red team.
\item[Example 6:] Player 2 (of the red team) is awarded a \texttt{Penalty kick} and kicks the ball towards the blue-team's goal. The goalkeeper blocks the ball. The referee then calls ``Ball Free``.
Player 2 (of the red team) kicks the ball again and score.
This is \textit{not} an indirect kick, the goal does not count and a \texttt{Goal kick} is awarded to the blue team.
\end{description}

\subsubsection{Indirect Kick - Challenge Shield}
\label{sec:indirect_kick_challenger}

The attacking team may only score a goal via indirect kick from any restart into \texttt{playing} from a free kick.

Expand Down Expand Up @@ -215,7 +249,7 @@ \subsection{Kick-off}
The head referee must signal this from the T-junction of the halfway line.
\qty{\PlayingDelayTime}{\second} after the head referee has signaled the kick-off, the robots' state is switched to \texttt{playing} by the GameController (regardless of when the ball comes into play).

A goal may be scored directly from a kick-off.
arnemoos marked this conversation as resolved.
Show resolved Hide resolved
A goal may be scored directly from a kick-off for the Challenge Shield. However, for the Champions Cup the indirect kick rule applies and the goal does \textit{not} count.

\subsubsection{Ball in Play}

Expand Down