Git Product home page Git Product logo

credible-spider's Introduction

可靠蜘蛛纸牌 Credible-Spider

视频 Video

Bilibili: 用C++验证蜘蛛纸牌1、2、4花色有多难(编程自动打蜘蛛纸牌)

简介 Introduce

保证每一把都是可解问题的蜘蛛纸牌。 The spider solitaire game that each game is certain to be solved.

本项目的目的是: The purpose of this project is in below:

  1. 完成蜘蛛纸牌内核,实现生成牌局、发牌、移牌、胜利、撤销等操作。(已完成) Realize the core of spider solitaire, include the dealing, moving, win-judging, redoing operation, etc. (finished)

  2. 完成蜘蛛纸牌的自动翻牌,使用博弈树及估值函数实现。自动翻牌是为了证明当前牌局一定可解出/大概率无法解出。(已完成) Realize the auto-play function, by using the game tree and the valuation function. Auto-play is for proving the current game can be solved or almost not. (finished)

  3. 实现仿 Windows 的蜘蛛纸牌,增加“可靠牌局”,“自动翻牌”功能。(已完成) Realize a like-Windows spider solitaire, added the "Credible Game", "Auto-Play" function. (finished)

可靠牌局 Credible game

多线程寻找可解牌局 Find one game that can be solved by using multi-thread

自动翻牌 Auto-play

自动翻牌功能目前能解出90%以上的1花色牌局,20%左右的2花色牌局,4花色不能解出。在解决方案内另有一个控制台版蜘蛛纸牌,我在控制台版本中使用项目方法求解4花色蜘蛛纸牌,最大尝试步骤设置为100,000,单把牌局大约耗时10min,仍然不能解出。 Currently Auto-play function can solve more than 90% game of 1 suit number, and about 20% game of 2 suit number, can not solve 4 suit-number game. Here is a console-version spider solitaire game, I have used this method to solve 4 suit-number game, in the case of that maximum trying-step-number set be 100,000 and one game spend 10min, the 4 suit-number game is still not solved.

胜利效果 Win effect

credible-spider's People

Contributors

tomwillow 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.