Giter Club home page Giter Club logo

cappo's Introduction

Cappo of Cappo

一款三消益智类游戏。

  • version 1.0
  • @date 2022-10-08
  • 共设置五个难度模式和30个关卡
  • 添加移除道具、撤回道具、洗牌道具,可输入作弊码无限使用道具。
  • 添加问号牌型、扩充卡槽功能
  • 添加关卡计时和排行榜
 * 每关的卡片数要确保是3的倍数;array是8*8的二维数组。
 * array[row][column]说明:
 * 1) array[row][column] = 0, 表示该层的第row行第column列的位置没有卡片。
 * 2) array[row][column] = 1, 表示该层的第row行第column列的位置有一张卡片, 采用牌堆模式C。
 * 3) 1 < array[row][column] < 10, 采用牌堆模式A, 仅在第0层使用, 设为多少就表示有多少张卡片,
   且只能在array[0][6], array[1][7], array[7][6], array[6][7]设置,
   所有层(包括第0层)array[0][5], array[0][6], array[0][7], array[1][7], arr[2][7]
   array[7][5], array[7][6], array[7][7], array[6][7], array[5][7]必须设置为0,
   也就是左下角和右下角的外围三角区域。
 * 4) array[row][column] = 11, 采用牌堆模式B, 水平布局;
    array[row][column] = 12, 采用牌堆模式B, 垂直布局。
  • 牌堆模式A:上面1张牌只挡住下面1张牌;同时下面的牌仅被上面1张牌挡住。 只要上面的1张牌被取走,下面的牌就成为窗口牌;(类似蜘蛛纸牌发牌区, 看不见被挡的卡片类型)
  • 牌堆模式B: 上面1张牌可以挡住下面2张牌;同时下面的牌可能被上面2张牌挡住, 一张牌只有它上面的2张牌都被取走,它自己才成为窗口牌。
  • 牌堆模式C:上面1张牌可以挡住下面4张牌;同时下面的牌可能被上面4张牌挡住, 一张牌只有它上面的4张牌都被取走,它自己才成为窗口牌。

灵感来自3tiles,参考https://blog.csdn.net/csdnnews/article/details/126935553?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522166519045816800180620859%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=166519045816800180620859&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-2-126935553-null-null.142^v51^control,201^v3^control_2&utm_term=%E7%BE%8A%E4%BA%86%E4%B8%AA%E7%BE%8A&spm=1018.2226.3001.4187

cappo's People

Contributors

ssimonz avatar

Stargazers

 avatar wang zhuang 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.