Projekt:2021/WORDLE

Aus Informatik-Box
Zur Navigation springen Zur Suche springen

Seite zum Projekt Wordle des Informatik LK im Schuljahr 2021/22.

Projekt Wordle

Icon Heft.png
Arbeitsauftrag

Modelliert und implementiert zu zweit einen Wordle Server, der das im Unterricht entwickelte WOPP3 vollständig umsetzt.


Das WORDLE Play Protocol 3 (WOPP3)

Positiver Indikator: +OK
Negativer Indikator: -ERR
Antwort auf nicht gültige Befehle: -ERR command not valid in this state

Immer möglich: 
QUIT
						+OK bye


- Client baut Verbindung auf -
						+OK <willkommensnachricht>

## Anmeldephase

USER <username>
						+OK
						-ERR <nachricht>
PASS <password>
						+OK welcome
						-ERR login not valid
WOTD
						+OK game ready | game running
						-ERR game finished
PLAY
						+OK game ready | game running
						-ERR not logged in | wotd not finished

## Spielphase

SEND <wordl>
						+OK <answer>
						game continues | game won | game lost
							Five chars with:
								0 = not in word
								1 = wrong place
								2 = correct
						-ERR wrong format | word not in dict 
INFO
						+OK
						wort1 01002
						wort2 01012
						wort3 02100
						.
INFO <n>
						+OK wortN 01020
EXIT						
						+OK
						Wechsel in Zwischenphase
						-ERR not logged in

## Zwischenphase (angemeldet)

STAT 
						+OK 
						times played: <int>
						win percentage: <int>
						current streak: <int>
						max streak: <int>
						won in 1 turn: <int>
						won in 2 turn: <int>
						won in 3 turn: <int>
						won in 4 turn: <int>
						won in 5 turn: <int>
						won in 6 turn: <int>
						.
PLAY
						+OK game ready | game running
						-ERR wotd not finished

Links

Dokumentationen