GithubHelp home page GithubHelp logo

snake's Introduction

snake(贪吃蛇测试平台2.0版本已经发布)

测试平台的简单介绍

本测试平台基于windows系统开发,运行环境也是windows。选手在进行开发的时候可以直接下载源代码并且在系统上编译。

测试平台的编译方法

  1. 下载源代码shiyan.cpp
  2. 下载库函数uselei.h
  3. 在本地目录下进行编译(推荐使用codeblocks,其他IDE或编译器也可以)生成shiyan.exe。

测试方法

  1. 将你写的程序生成dll(动态链接库),命名为player_1.dll或者player_2.dll。根据蛇的先后顺序确定是player_1还是player_2
  2. 将动态链接库拷贝到与shiyan.exe同一目录下。然后使用命令行运行shiyan.exe。
  shiyan.exe player_1.dll player_2.dll
注意上述命令行参数,第一个是选手一的动态链接库,第二个是选手二的动态链接库。
  1. 最后会输出结果,若要查看贪吃蛇的整个运动过程,请打开生成的result.txt文件。
  2. 图像生成程序已经完成,但仅在linux平台可用,若要使用result.txt生成动画,请关注近期即将发布的绘图程序。

注意事项:你写的主函数名称必须是player_1或player_2

测试平台是公开源代码的,且正在测试当中,若发现有任何不明白的地方请先查看源代码。若发现bug请与开发者联系。

snake's People

Contributors

williamking5 avatar

Watchers

James Cloos avatar  avatar

Forkers

ouc-mym

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.