All Projects → szisa → puzzle

szisa / puzzle

Licence: MIT License
🧩 Online Web Puzzle Development Framework

Programming Languages

PHP
23972 projects - #3 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to puzzle

DevAdventCalendar
DevAdventCalendar web app
Stars: ✭ 26 (-40.91%)
Mutual labels:  puzzle
AWKTC
AWKTC is Workable Klutzy Time-wasting Command
Stars: ✭ 44 (+0%)
Mutual labels:  puzzle
BitCrack2
Brute force Bitcoin private keys.
Stars: ✭ 30 (-31.82%)
Mutual labels:  puzzle
yayagram
Play nonograms/picross in your terminal
Stars: ✭ 33 (-25%)
Mutual labels:  puzzle
numberlink
Program for generating and solving numberlink / flow free puzzles
Stars: ✭ 47 (+6.82%)
Mutual labels:  puzzle
pynpuzzle
Solve, test and benchmark algorithms for N-Puzzle problem with Python
Stars: ✭ 26 (-40.91%)
Mutual labels:  puzzle
js13k-2020
Edge Not Found, an infinitely wrapping Sokoban-type puzzle game for js13k 2020
Stars: ✭ 72 (+63.64%)
Mutual labels:  puzzle
prolog puzzles
Prolog puzzles for fun and profit (mostly fun)
Stars: ✭ 39 (-11.36%)
Mutual labels:  puzzle
Raymarch-Engine
Minimal ray-traced game engine with gravity affected rays
Stars: ✭ 17 (-61.36%)
Mutual labels:  puzzle
mimstris
A falling block puzzle game created using React and Redux.
Stars: ✭ 129 (+193.18%)
Mutual labels:  puzzle
advent-of-code-2019
Advent of Code 2019 Submissions
Stars: ✭ 27 (-38.64%)
Mutual labels:  puzzle
music-puzzle-games
"Generating Music Medleys via Music Puzzle Games", AAAI 2018
Stars: ✭ 16 (-63.64%)
Mutual labels:  puzzle
infinity
Infinity is a simple online puzzle hunt/jeopardy-style CTF platform.
Stars: ✭ 11 (-75%)
Mutual labels:  puzzle
react-puzzle-confirm
React confirm modal, by matching puzzle piece
Stars: ✭ 15 (-65.91%)
Mutual labels:  puzzle
advent-of-code
Solutions to the Advent of Code editions, mainly using Kotlin.
Stars: ✭ 14 (-68.18%)
Mutual labels:  puzzle
Hodoku
Hodoku is a solver/generator/trainer/analyzer for standard sudoku.
Stars: ✭ 49 (+11.36%)
Mutual labels:  puzzle
LixD
Lix: Lemmings-like game with puzzles, editor, multiplayer
Stars: ✭ 80 (+81.82%)
Mutual labels:  puzzle
zork
Full C++-17 port of the 616-point version of Zork from MIT circa 1978-1981
Stars: ✭ 16 (-63.64%)
Mutual labels:  puzzle
meandmyshadow
Fork of the puzzle game Me and My Shadow originally at SourceForge
Stars: ✭ 18 (-59.09%)
Mutual labels:  puzzle
vue-crossword
Crossword puzzle builder VueJS application.
Stars: ✭ 54 (+22.73%)
Mutual labels:  puzzle

网页解谜框架

这是一个网页解谜开发框架,可以通过此框架快速开发属于自己的网页解谜游戏。页面结构参考了Arthur's Online Riddle(已下线)。目前用此框架开发过的网页解谜游戏有创软网页解谜

目前共有两种通关种类:a. URL; b. Password。

开辟关卡方法

  1. 拷贝template目录下的tp.php文件到你自己决定路径,并修改名字;
  2. 填写关卡编号stage,下一关卡路径next(选填),网页title提示title(选填),通关密码passwd(选填)等等。
$p = new puzzle(array(
  "stage" => 15,
  "next" => "/folder/stage.php",
  "title" => "Title Tip",
  "passwd" => "Password",
  "unicode" => "utf-8",
  "jsCode" => "alert('javascript');",
  "cssCode" => "#item{display:none;}",
  "feedback" => array(
      "123456" => "额...密码不会这么简单吧...",
      "super" => "嗯~就差一点了~",
    ),
  "sub" => true,
));
  1. 编写谜面。

puzzle参数详解

  1. stage : 目前关卡编号,用于显示在页面告知解谜者。
  2. next : 下一页面的地址,这里分为两种:
  • 通过提交密码通关,这里URL必须填写用根域开始的相对目录,使用根域相对路径表示法,例如:/lang/ruby.php
  • 通过URL方式通关,则根据需要填写即可。
  1. title : 当需要在网页的<title>标签填写提示语时,则设置该项;
  2. passwd : 选中第b种解谜方式时,则需要填写该项,并且需配合模板中的密码框提交密码。注意不要删除密码检查代码:
if($p->check())
{
  $p->next();
}

你也可以针对每个关卡编写自己的检查处理,当$p->check()等于true时,表示验证通过。
5. unicode : 指定页面编码,用于特殊关卡。
6. jsCode : 设置页面加载完成后执行的js代码,此部分代码不会直接出现在页面中,而是过script标签引用外部文件。
7. cssCode : 设置关卡的独立css代码,此部分代码不会直接出现在页面中,而是过link标签引用外部文件。
8. feedback : 设置指定密码feedback,此参数仅可以用于包含密码检查的关卡。参数类型必须为关联数组。数组key为密码,value为feedback。
9. sub : 该值为ture时,表示当前关卡为前一关的子关卡。子关卡将不会显示header

部署须知

  • 网站需部署在根目录或目录要绑定(子)域
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].