Git Product home page Git Product logo

connectsixchecker's Introduction

简介

用 C++ 语言写的非常简陋的六子棋 Checker,可指定玩家或者程序作为对战的双方。

运行

需要在安装了 C++11 的 macOS/Linux 系统下运行。

编译:

make

运行:

./checker user user

两个参数分别表示下棋的双方,"user" 表示该方是通过命令行窗口交互的玩家,其它则表示该方是以 该字符串.cpp 为文件名的 C++ 程序。

玩家的交互规范为:

  • 先手时给出两个整数 x,y,表示第一颗黑子的坐标 (x, y)。
  • 否则需要给出四个整数 x0,y0,x1,y1,表示当前回合我方落子的两个位置 (x0, y0) 和 (x1, y1)。

程序的交互规范可见 BotZone

其它

这个仓库的真实用途其实是测试一下 Git 和 GNUMake……

(UPD: 时间被放宽到了 2s)

connectsixchecker's People

Contributors

whz0325 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.