deivao06/merchant-cli 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

deivao06/merchant-cli

最新稳定版本:v0.5.1

Composer 安装命令:

composer create-project deivao06/merchant-cli

包简介

A CLI merchant game

README 文档

README

merchant-cli-logo

Total Downloads Latest Stable Version License

A command-line trading game where you play as a merchant, trading with other players on the same network to grow your city.

About the Game

Merchant CLI is a multiplayer game that runs in your terminal. The core gameplay revolves around trading resources with other players to acquire the materials needed to upgrade your city. Each player manages their own city, and the goal is to become the most prosperous merchant.

Features

  • Multiplayer Trading: Trade resources with other players on the same LAN (Coming Soon).
  • City Management: Build and upgrade your city to increase your production and unlock new abilities.
  • Resources production: All resources are produced per minute.
  • Biomes: Random selected on city creation and directly affects resource production.
  • Resources:
    • Gold: Universal currency used for trade.
    • Food: Keeps your population fed an is required for some upgrades.
    • Wood: Basic building material.
    • Stone: Used for strong structures and upgrades.
  • Buildings:
    • Farm: Produces food.
    • Sawmill: Produces wood.
    • Quarry: Produces stone.

Installation

You can install the merchant-cli globally using Composer:

composer global require deivao06/merchant-cli

Alternatively, you can clone the repository and install dependencies:

  1. Clone the repository:
    git clone https://github.com/your-username/merchant-cli.git
  2. Install the dependencies:
    composer install
  3. Run the game:
    php merchant-cli

How to Play

Initialize a new game

To start a new game, run the game:init command. This will create a new game world and save file.

merchant-cli game:init

Check your game status

To see the current status of your city, resources, and buildings, use the game:status command.

merchant-cli game:status

Trading

(Coming soon)

Development

This project is built with PHP and the Laravel Zero framework.

Running tests

To run the test suite, use the following command:

./vendor/bin/pest

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue. Before contributing, please read our development guide.

Development Guide - Essential reading for contributors

Quick start for Contributors:

  1. Fork the project
  2. Create your Feature Branch from dev (never from master)
  3. Ensure all tests pass and add tests for new features
  4. Commit your changes using conventional commit format
  5. Push to the Branch
  6. Open a Pull Request to the dev branch

Important: Never commit directly to the master branch. All changes must go through the dev branch first.

Authors

@deivao06

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固