Skip to content

santoro63/ELCodeBreaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Breaker in Emacs-Lisp

An implementation of the Code Breaker game in Emacs Lisp.

Install and Play

(load "path/to/codebreaker.el")
(cb/play-game)

Run the above from inside Emacs and have fun.

Playing the Game

When you run cb/play-game, Emacs will open (or switch to) the code breaker buffer and await your input. You then enter a guess consisting of four letters representing one of the following colored pegs: (R)ed, (B)lue, (G)reen, (Y)ellow, (W)hite and (P)urple. Emacs will print your guess followed by two numbers. The first number indicates the number of pegs of the correct color and position; the second number indicates number of pegs of correct color but wrong position. It then waits for your next input. The game exits when you guess correctly, showing how many tries it took to break the code.

Technicalia

Design notes can be found here.

About

An implementation of the code breaker game for Emacs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors