Bug 281527 - [NEW PORT] games/gobang: This is a console-based Gobang game
Summary: [NEW PORT] games/gobang: This is a console-based Gobang game
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Robert Clausecker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-16 06:15 UTC by Qiang Guo
Modified: 2024-09-25 06:38 UTC (History)
2 users (show)

See Also:


Attachments
git diff file gobang.diff (1.81 KB, patch)
2024-09-16 06:15 UTC, Qiang Guo
bigdragonsoft: maintainer-approval+
Details | Diff
games/Makefile and games/gobang diff (1.63 KB, application/x-gzip)
2024-09-18 03:12 UTC, Qiang Guo
bigdragonsoft: maintainer-approval+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Qiang Guo 2024-09-16 06:15:24 UTC
Created attachment 253598 [details]
git diff file gobang.diff
Comment 1 Qiang Guo 2024-09-18 03:12:01 UTC
Created attachment 253634 [details]
games/Makefile and games/gobang diff

The portlint has been finished.
Comment 2 Robert Clausecker freebsd_committer freebsd_triage 2024-09-20 14:42:03 UTC
Please don't submit compressed files as diffs.  Send an uncompressed diff as a single file and set the "patch" flag when submitting it.  I recommend making a git commit with your changes and using "git-format-patch" to generate the patch.

I'll edit your port to obey ${CC}, ${CFLAGS}, etc when building the port.

For future updates, check if you can ship a manpage with the game.  Game manpages go into section 6 of the manual.
Comment 3 Qiang Guo 2024-09-20 14:55:51 UTC
Hi.

I'm very sorry. Do you still need me to resubmit the diffs? I will add the manual of the game in the next update.
Comment 4 Robert Clausecker freebsd_committer freebsd_triage 2024-09-20 14:58:58 UTC
No need to resubmit anything.  I've fixed all the issues I mentioned.  But do check if you can add a manpage in a future update, that would be great!
Comment 5 Qiang Guo 2024-09-20 15:02:10 UTC
Thank you very much for your help. I will add the manual page of the game in the next update.
Comment 6 commit-hook freebsd_committer freebsd_triage 2024-09-25 06:31:31 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=312e909f61fa1f7533af565e4f6f09b5f6240510

commit 312e909f61fa1f7533af565e4f6f09b5f6240510
Author:     Qiang Guo <guoqiang_cn@126.com>
AuthorDate: 2024-09-20 14:42:09 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
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 (new)  | 25 +++++++++++++++++++++++++
 games/gobang/distinfo (new)  |  3 +++
 games/gobang/pkg-descr (new) | 13 +++++++++++++
 4 files changed, 42 insertions(+)
Comment 7 Robert Clausecker freebsd_committer freebsd_triage 2024-09-25 06:38:58 UTC
Thank you for your contribution.