Pervasive Displays Library Suite - Reference Manual 9.0.3
Library for Pervasive Displays e-paper screens, extension boards and development kits
Loading...
Searching...
No Matches
GUI_TicTacToe.ino File Reference

Example of features for Evaluation and Commercial editions. More...

#include "PDLS_Common.h"
#include "hV_Utilities.h"
#include "TicTacToe.h"
#include "Pervasive_Touch_Small.h"
#include "PDLS_Advanced.h"
#include "hV_GUI.h"
Include dependency graph for GUI_TicTacToe.ino:

Functions

void initialiseScreen ()
 Initialise screen.
 
void drawStartScreen ()
 Draw start screen.
 
void drawGameScreen ()
 Draw empty board.
 
void drawGameOverScreen ()
 Draw end of game.
 
void playGame ()
 Play the game.
 
void drawMovePlayer (coordinates_s coordinates, uint8_t player)
 Display the move of a player.
 
coordinates_s moveHuman ()
 Let the human play.
 
void setup ()
 Setup.
 

Detailed Description

Example of features for Evaluation and Commercial editions.

Library for Pervasive Displays EXT3 - Evaluation and Commercial editions

Author
Rei Vilo
Date
21 Jan 2025
Version
902
See also
ReadMe.txt for references

Function Documentation

◆ drawGameOverScreen()

void drawGameOverScreen ( )

Draw end of game.

Display winner

◆ drawMovePlayer()

void drawMovePlayer ( coordinates_s coordinates,
uint8_t player )

Display the move of a player.

Parameters
coordinatesmove coordinates
playerPLAYER_MCU or PLAYER_HUMAN

◆ drawStartScreen()

void drawStartScreen ( )

Draw start screen.

Splash screen

◆ initialiseScreen()

void initialiseScreen ( )

Initialise screen.

Screen, fonts, elements

Note
Should be called only once at the very beginning

◆ moveHuman()

void moveHuman ( )

Let the human play.

Get valid touch input, generate coordinates

◆ playGame()

void playGame ( )

Play the game.

Main loop