讲讲 Roguelike 相关知识
最后更新 2013.5.28
如果你是一位资深游戏玩家,那么最近你肯定在哪里看到过 Roguelike 这个词。Roguelike 这个古老的游戏类型现在又变得很潮流,其中各种要素都在不断的被新游戏借鉴。作为一名就是比你有更多空余时间的高玩,我想在这里介绍一下我了解的 Roguelike 相关的东西。文章很长,但应该会比较有意思。
function is_ascii(str) { | |
return /^[\x00-\x7F]*$/.test(str); | |
} | |
function is_seperator(c) { | |
return [" ", ",", "。", ",", ";", ",", "?", ".", "?", ";", "《", "》"].indexOf(c) > -1; | |
} | |
function random_choice(arr) { | |
return arr[Math.floor(arr.length * Math.random())]; |
$J.post("/app/7", { sessionid: g_sessionID, appid_to_clear_from_queue: 955560 }) |
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration. | |
You should not put any user code in this function besides modifying the variable | |
values." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory |
# Copy and self modified from ys.zsh-theme, the one of default themes in master repository | |
# Clean, simple, compatible and meaningful. | |
# Tested on Linux, Unix and Windows under ANSI colors. | |
# It is recommended to use with a dark background and the font Inconsolata. | |
# Colors: black, red, green, yellow, *blue, magenta, cyan, and white. | |
# http://xiaofan.at | |
# 2 Jul 2015 - Xiaofan | |
# Machine name. | |
function box_name { |
I hereby claim:
To claim this, I am signing this object:
class Vertex { | |
constructor (label, wasVisited) { | |
this.label = label; | |
this.wasVisited = wasVisited; | |
} | |
} | |
class Graph { | |
constructor (v) { | |
this.vertices = v; |
;; ------------------------------------------------------------ ;; | |
;; MELPA | |
;; ------------------------------------------------------------ ;; | |
(require 'package) | |
(dolist (source '( | |
("melpa" . "http://melpa.org/packages/") | |
)) | |
(add-to-list 'package-archives source t)) | |
(when (< emacs-major-version 24) | |
;; For important compatibility libraries like cl-lib |
#!/bin/bash | |
########################################### | |
#This shell is modified from Leon Lee, or-# | |
#iginal version see here: # | |
# # | |
#https://gist.github.com/anonymous/1117004# | |
# # | |
# # | |
#Notice: To run this shell, you should in-# |