Files
ports/games/mastermind/Makefile
T
Qiang Guo 18c77415cb games/mastermind: traditional console-based mastermind game
This is a traditional console-based Mastermind game. The rules are as follows:
1. The game will generate a 4-digit color/number code
2. The range of colors/numbers is from 1 to 8
3. The player has 10 chances to guess the code
4. After each guess, the system will provide hints:
   - Green plus sign (+) indicates both color and position are correct
   - Red minus sign (-) indicates the color is correct but the position is wrong
5. The player needs to gradually guess the correct code based on the hints
6. During the game, you can enter 'r' at any time to switch display mode
   (color blocks/numbers)
7. During the game, you can enter 'q' at any time to exit the game

WWW: https://github.com/bigdragonsoft/mastermind
2024-10-28 13:41:57 +01:00

28 lines
661 B
Makefile

PORTNAME= mastermind
DISTVERSION= 0.1.0
CATEGORIES= games
MAINTAINER= bigdragonsoft@gmail.com
COMMENT= Traditional console-based Mastermind game
WWW= https://github.com/bigdragonsoft/mastermind
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USE_GITHUB= yes
GH_ACCOUNT= bigdragonsoft
CFLAGS+= -std=c99
PLIST_FILES= bin/mastermind \
share/man/man6/mastermind.6.gz
do-build:
${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o ${WRKSRC}/mastermind ${WRKSRC}/mastermind.c ${LIBS}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mastermind ${STAGEDIR}${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/mastermind.6 ${STAGEDIR}${PREFIX}/share/man/man6/
.include <bsd.port.mk>