From nobody Wed Sep 25 06:30:06 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XD6KV3kPMz5Wh0K; Wed, 25 Sep 2024 06:30:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XD6KV2H1sz480v; Wed, 25 Sep 2024 06:30:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727245806; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=agFPm7iERYtEqY/U3icP6TvN3NsbCzVm1dWhfBbcLcI=; b=ys6JQpaThK6gk7dGzz3qLCD/d/bClQMZBVEPtCW/1ODgvUaITOPxUM/tD8hFs0tQ7b5V7A 7dbORJMPl8mwMbKGDB1XfPFlsL9PcFd0TJB0/JtQ325aFf4k2iczTmLRArfgc9jWVpirvU 8wMSeN4tR2FlS4+MZj9if1Lpe992x9cz41B4SnvPNNHoLQRr7Bin/lljjrFpgKbnBuLscU n4FaOIkrHZYWPPqVC+zOctBxbexJbEvlR5ZkibFjKdSAYF00v+5Wds7DKqFSTk94hIHoA1 k4ECNo4Z0KKt385N4subJP+YRIEct4BVqwIwKrsjzkYBmt+jHwWP1zLv4kduug== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727245806; a=rsa-sha256; cv=none; b=CSHCnD6yiBGMRIiiEq+cC9jqYnO7JIbMeF6Hb2qaHbAJSjs4uXG5AxGNAm876aoH/lEQXZ 6VHsYNflae5J258qFIRq/92Kvs5E/GNnmzdTnX255fZLjMz7RbwKayTVTNuJ7m4h4IfTuP irlGpO+JrujeNwAycPinqXaFogd013Vk/4YQW57mOItl1S8Qi0lc46K8eMrS1M07/aeIvP U2XCvJWEUO9+DvHv+1BaPaVyA3AtIxJg5/GCqx17AyHGYNShUwLmnjV6ArLzMfptgH7Clg LYZxC6FDFs4yqRFndWgmBM1r9fCAaJmqcGA4eQ/liVJaM+CtQNgW2O3cBJMgPw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727245806; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=agFPm7iERYtEqY/U3icP6TvN3NsbCzVm1dWhfBbcLcI=; b=Nka7f4MhvsG97XbLyTWzNZ7uomxYAYYULMVykUAj39ZdRzGPIoLTi8wCiak0bBYlrjljKD tkP4SUYLnvjUVr3+D0GA6qCZkDSMZNZ2IMGSQqKYRosFVS/eb4h68s5s8mXSxsWWAtx3VZ F72kj1wgwhJAImz3KuBMTP9CqpJg+7Txc6mpZxC7npEsd4FlxaTANcmeCKURlW3xOhLMVq bGw9uuQTaJIx9b/C6f60dVxCFWE3HzFZP+eqAv91Of4HCCz1PDFzPLIpHl3Pg/FqI9HOhc 8SmvnLuwlBmu6tQoHjSNQIJqk5niRNch0dmOE4Q2rPdIQkQ5a1k6KAISLFGoLg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XD6KV1v4sz11pZ; Wed, 25 Sep 2024 06:30:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48P6U6NL046719; Wed, 25 Sep 2024 06:30:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48P6U6uA046715; Wed, 25 Sep 2024 06:30:06 GMT (envelope-from git) Date: Wed, 25 Sep 2024 06:30:06 GMT Message-Id: <202409250630.48P6U6uA046715@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Robert Clausecker Subject: git: 312e909f61fa - main - games/gobang: console-based Gobang game List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 312e909f61fa1f7533af565e4f6f09b5f6240510 Auto-Submitted: auto-generated The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=312e909f61fa1f7533af565e4f6f09b5f6240510 commit 312e909f61fa1f7533af565e4f6f09b5f6240510 Author: Qiang Guo AuthorDate: 2024-09-20 14:42:09 +0000 Commit: Robert Clausecker CommitDate: 2024-09-25 06:28:03 +0000 games/gobang: console-based Gobang game This is a console-based Gobang (Five in a Row) game program. It provides a 15x15 board, supports player vs AI gameplay with different difficulty levels for the AI. The game implements an AI decision-making system based on the minimax algorithm, featuring core game logic such as board evaluation and win/loss determination. The program offers a user-friendly command-line interface for easy operation and game viewing, aiming to provide players with an entertaining and challenging Gobang game experience. - Two-player mode - Standard 15x15 game board - Alternating black and white stone placement - Automatic win/loss determination WWW: https://github.com/bigdragonsoft/gobang PR: 281527 Event: EuroBSDcon 2024 --- games/Makefile | 1 + games/gobang/Makefile | 25 +++++++++++++++++++++++++ games/gobang/distinfo | 3 +++ games/gobang/pkg-descr | 13 +++++++++++++ 4 files changed, 42 insertions(+) diff --git a/games/Makefile b/games/Makefile index bb88fc450fe4..6c1abc1b8d67 100644 --- a/games/Makefile +++ b/games/Makefile @@ -356,6 +356,7 @@ SUBDIR += gnushogi SUBDIR += gnustep-ladder SUBDIR += gnustep-sudoku + SUBDIR += gobang SUBDIR += gogrepo SUBDIR += gogui SUBDIR += golddig diff --git a/games/gobang/Makefile b/games/gobang/Makefile new file mode 100644 index 000000000000..6fed86d28118 --- /dev/null +++ b/games/gobang/Makefile @@ -0,0 +1,25 @@ +PORTNAME= gobang +DISTVERSION= 0.1 +CATEGORIES= games + +MAINTAINER= guoqiang_cn@126.com +COMMENT= This is a Gobang game that runs in the console +WWW= https://github.com/bigdragonsoft/gobang + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +USE_GITHUB= yes +GH_ACCOUNT= bigdragonsoft + +CFLAGS+= -std=c99 + +PLIST_FILES= bin/gobang + +do-build: + ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o ${WRKSRC}/gobang ${WRKSRC}/gobang.c ${LIBS} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/gobang ${STAGEDIR}${PREFIX}/bin/ + +.include diff --git a/games/gobang/distinfo b/games/gobang/distinfo new file mode 100644 index 000000000000..314201f23f52 --- /dev/null +++ b/games/gobang/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1726437465 +SHA256 (bigdragonsoft-gobang-0.1_GH0.tar.gz) = 7cda1b6c8ba1c89cc468234b2a0e51e79af694bcb84147c2011d29560a50a1ef +SIZE (bigdragonsoft-gobang-0.1_GH0.tar.gz) = 5775 diff --git a/games/gobang/pkg-descr b/games/gobang/pkg-descr new file mode 100644 index 000000000000..8a9017255e03 --- /dev/null +++ b/games/gobang/pkg-descr @@ -0,0 +1,13 @@ +This is a console-based Gobang (Five in a Row) game program. +It provides a 15x15 board, supports player vs AI gameplay with +different difficulty levels for the AI. The game implements an +AI decision-making system based on the minimax algorithm, +featuring core game logic such as board evaluation and win/loss +determination. The program offers a user-friendly command-line +interface for easy operation and game viewing, aiming to provide +players with an entertaining and challenging Gobang game experience. + +- Two-player mode +- Standard 15x15 game board +- Alternating black and white stone placement +- Automatic win/loss determination