]> git.gir.st - minesVIiper.git/log
minesVIiper.git
6 years agorestructure mines.c (renamed from mines_2017.c)
girst [Thu, 19 Apr 2018 13:16:57 +0000 (15:16 +0200)]
restructure mines.c (renamed from mines_2017.c)

 - move declarations in a header file

6 years agoextend test target (-pedantic build)
girst [Thu, 19 Apr 2018 12:47:26 +0000 (14:47 +0200)]
extend test target (-pedantic build)

6 years agofix "\e is non-ISO-standard escape sequence"
girst [Thu, 19 Apr 2018 12:40:20 +0000 (14:40 +0200)]
fix "\e is non-ISO-standard escape sequence"

-pedantic doesn't like the \e used in VT220's schema.h

6 years agofinally fix returning from alternate screen bug
girst [Thu, 19 Apr 2018 11:54:53 +0000 (13:54 +0200)]
finally fix returning from alternate screen bug

the cursor position was off causing the screen to get partially overwritten. now saving the cursor's position before entering alternate screen and restoring after exiting from it.

6 years agoremove flag_offset, fix operator precedence bug
girst [Sun, 1 Apr 2018 22:07:33 +0000 (00:07 +0200)]
remove flag_offset, fix operator precedence bug

found with -Wextra

6 years agoVT220: Soft charset for Flag glyph (cleanup)
girst [Sun, 1 Apr 2018 21:49:37 +0000 (23:49 +0200)]
VT220: Soft charset for Flag glyph (cleanup)

6 years agoDECDCL flag glyph (new version)
girst [Sun, 1 Apr 2018 21:33:15 +0000 (23:33 +0200)]
DECDCL flag glyph (new version)

6 years agonew flag for monoscheme
girst [Sun, 1 Apr 2018 00:53:33 +0000 (02:53 +0200)]
new flag for monoscheme

6 years agos/move/move_ph/ ; s/cursor_move/move_hi/
girst [Sat, 31 Mar 2018 23:07:53 +0000 (01:07 +0200)]
s/move/move_ph/ ; s/cursor_move/move_hi/

6 years agoadd `make test'
girst [Sat, 31 Mar 2018 23:02:03 +0000 (01:02 +0200)]
add `make test'

6 years agominor cleanup
girst [Sat, 31 Mar 2018 23:01:50 +0000 (01:01 +0200)]
minor cleanup

6 years agocrudely fix `-q' flagcounter, :D clicking in dec mode wasn't broken at all
girst [Sat, 31 Mar 2018 22:23:03 +0000 (00:23 +0200)]
crudely fix `-q' flagcounter, :D clicking in dec mode wasn't broken at all

6 years agoimplement 'z' key, improved scheme (is new version)
girst [Sat, 31 Mar 2018 21:31:23 +0000 (23:31 +0200)]
implement 'z' key, improved scheme (is new version)

6 years agosimplify :D click, fix :o emoticon in DEC mode
girst [Sat, 31 Mar 2018 20:54:17 +0000 (22:54 +0200)]
simplify :D click, fix :o emoticon in DEC mode

6 years agofix segfault when clicking out of bound and then using the keyboard
girst [Sat, 31 Mar 2018 20:17:36 +0000 (22:17 +0200)]
fix segfault when clicking out of bound and then using the keyboard

6 years agoimplement cursor keys, fix endgame emoticon, minor fixes
girst [Sat, 31 Mar 2018 20:00:25 +0000 (22:00 +0200)]
implement cursor keys, fix endgame emoticon, minor fixes

6 years agosimplify border, minor fixes, 80col code, etc
girst [Sat, 31 Mar 2018 18:58:53 +0000 (20:58 +0200)]
simplify border, minor fixes, 80col code, etc

6 years agofinish schemes cleanup, fix %.*s format
girst [Sat, 31 Mar 2018 15:57:37 +0000 (17:57 +0200)]
finish schemes cleanup, fix %.*s format

6 years agocleanup color esc.seq with macro
girst [Sat, 31 Mar 2018 15:04:21 +0000 (17:04 +0200)]
cleanup color esc.seq with macro

6 years agocleanup schemes.h
girst [Sat, 31 Mar 2018 14:45:30 +0000 (16:45 +0200)]
cleanup schemes.h

6 years agocolor flag, v2
girst [Sat, 31 Mar 2018 14:42:38 +0000 (16:42 +0200)]
color flag, v2

6 years agocolor flag icon, v1
girst [Sat, 31 Mar 2018 14:28:06 +0000 (16:28 +0200)]
color flag icon, v1

6 years agofix missing modechar after flagging
girst [Thu, 29 Mar 2018 04:38:25 +0000 (06:38 +0200)]
fix missing modechar after flagging

6 years agofix mines>999, time>999, simplify 2nd line
girst [Thu, 29 Mar 2018 02:25:58 +0000 (04:25 +0200)]
fix mines>999, time>999, simplify 2nd line

6 years agocrude patch for >999 mines
girst [Thu, 29 Mar 2018 01:02:33 +0000 (03:02 +0200)]
crude patch for >999 mines

6 years agoclamp field size to window/mouse-max, dynamic minenum if not given
girst [Sat, 24 Mar 2018 23:35:12 +0000 (00:35 +0100)]
clamp field size to window/mouse-max, dynamic minenum if not given

6 years agocount non-placed flags (down) instead of placed (up)
girst [Wed, 7 Mar 2018 00:59:56 +0000 (01:59 +0100)]
count non-placed flags (down) instead of placed (up)

6 years agoadd default mine-num for 8x8 and 16x16
girst [Mon, 5 Mar 2018 01:54:45 +0000 (02:54 +0100)]
add default mine-num for 8x8 and 16x16

6 years agotodo: wait_mouse_up does not redraw correct emoticon
girst [Sat, 3 Mar 2018 16:21:05 +0000 (17:21 +0100)]
todo: wait_mouse_up does not redraw correct emoticon

6 years agoadd bug notice
girst [Sat, 3 Mar 2018 16:14:02 +0000 (17:14 +0100)]
add bug notice

6 years agonicer emoticons
girst [Sat, 3 Mar 2018 16:09:56 +0000 (17:09 +0100)]
nicer emoticons

didn't like the X( and 8) -- eyes now always colons

6 years agoadd game won emoticon, move them to schemes.h
girst [Sat, 3 Mar 2018 16:08:19 +0000 (17:08 +0100)]
add game won emoticon, move them to schemes.h

6 years agoupdate keybindings in `-h'
girst [Wed, 28 Feb 2018 02:13:24 +0000 (03:13 +0100)]
update keybindings in `-h'

6 years agoincrease version number
girst [Wed, 28 Feb 2018 02:06:12 +0000 (03:06 +0100)]
increase version number

6 years agofix typos in readme
girst [Wed, 28 Feb 2018 02:03:03 +0000 (03:03 +0100)]
fix typos in readme

6 years agoupdate readme to reflect recent changes
girst [Wed, 28 Feb 2018 01:58:15 +0000 (02:58 +0100)]
update readme to reflect recent changes

6 years agomove find-word-boundary code into one giant macro (dry)
girst [Wed, 28 Feb 2018 01:49:17 +0000 (02:49 +0100)]
move find-word-boundary code into one giant macro (dry)

have fun debugging this mess, future me!

6 years agobetter bigmove (now moves to "word boundaries" (changes of open/flag state))
girst [Wed, 28 Feb 2018 00:52:58 +0000 (01:52 +0100)]
better bigmove (now moves to "word boundaries" (changes of open/flag state))

6 years agoadd indicator for space mode next to the time
girst [Wed, 28 Feb 2018 00:09:01 +0000 (01:09 +0100)]
add indicator for space mode next to the time

6 years agoworking invert cursor
girst [Tue, 27 Feb 2018 23:49:36 +0000 (00:49 +0100)]
working invert cursor

6 years agotesting some flag patterns
girst [Tue, 27 Feb 2018 23:03:13 +0000 (00:03 +0100)]
testing some flag patterns

6 years agomodeful space will always choord, s/set_cursor_pos/move_cursor/
girst [Fri, 23 Feb 2018 01:42:23 +0000 (02:42 +0100)]
modeful space will always choord, s/set_cursor_pos/move_cursor/

6 years agoupdate introductory comment & version number
girst [Fri, 23 Feb 2018 01:00:24 +0000 (02:00 +0100)]
update introductory comment & version number

6 years agoimplement modeful space, cleanup gameloop a tiny bit
girst [Fri, 23 Feb 2018 00:43:31 +0000 (01:43 +0100)]
implement modeful space, cleanup gameloop a tiny bit

6 years agoslightly improve alt.screen handling (will force-clear)
girst [Sun, 18 Feb 2018 20:31:25 +0000 (21:31 +0100)]
slightly improve alt.screen handling (will force-clear)

6 years agochange command line switches -w -h -m to positional
girst [Sun, 18 Feb 2018 17:08:32 +0000 (18:08 +0100)]
change command line switches -w -h -m to positional

6 years agoimplement m ' ` (mark and jump)
girst [Sun, 18 Feb 2018 16:32:57 +0000 (17:32 +0100)]
implement m ' ` (mark and jump)

6 years agofix out of bounds check for right_click, use alternate screen
girst [Sat, 17 Feb 2018 17:40:55 +0000 (18:40 +0100)]
fix out of bounds check for right_click, use alternate screen

small bug with alt.screen: the cursor in the primary screen moves down
by 1 playfield's worth

6 years agoadd questionmark key
girst [Thu, 7 Sep 2017 16:15:19 +0000 (18:15 +0200)]
add questionmark key

allows to place question marks by hitting `?'. `-q' still sets what
flags can be set with `i'.

6 years agodeduplicate code for cursor movement; alias 0='^'
girst [Thu, 7 Sep 2017 16:12:11 +0000 (18:12 +0200)]
deduplicate code for cursor movement; alias 0='^'

adds a function that handles cursor movement. takes absolute
line/column-coordinates.

6 years agofix fallthrough bug in game loop
girst [Sun, 6 Aug 2017 16:25:01 +0000 (18:25 +0200)]
fix fallthrough bug in game loop

somehow, I managed to insert the case statement for restarting the game in
between the cases for flagging with the mouse and keyboard, which are connected
together with a fallthrough. That made the game restart whenever the mouse was
used to flag. I didn't notice this earlier, since I mostly play this game with the keyboard. (shame on me for not testing my code :| )

6 years agoadd link to homepage
girst [Tue, 18 Jul 2017 13:05:41 +0000 (15:05 +0200)]
add link to homepage

6 years agomake vt220 scheme use bright color and blink-effect
girst [Wed, 5 Jul 2017 16:05:16 +0000 (18:05 +0200)]
make vt220 scheme use bright color and blink-effect

6 years agoon win/lose: allow restarting with 'r'
girst [Wed, 5 Jul 2017 12:40:45 +0000 (14:40 +0200)]
on win/lose: allow restarting with 'r'

6 years agodec scheme: change flag character to "!"
girst [Tue, 4 Jul 2017 20:41:43 +0000 (22:41 +0200)]
dec scheme: change flag character to "!"

6 years agomore readme, update `-h`
girst [Tue, 4 Jul 2017 19:49:21 +0000 (21:49 +0200)]
more readme, update `-h`

still TODO: screenshot

6 years agoAdd readme
girst [Tue, 4 Jul 2017 19:11:15 +0000 (21:11 +0200)]
Add readme

contains a quick overview, and the keyboard mappings.
TODO: screenshot, vt220 mode, command line arguments, etc.

6 years agoadd ^$gG movements
girst [Tue, 4 Jul 2017 19:07:40 +0000 (21:07 +0200)]
add ^$gG movements

6 years agofinish VT220 mode
girst [Tue, 4 Jul 2017 18:25:31 +0000 (20:25 +0200)]
finish VT220 mode

6 years ago`-d` scheme now DEC Special Graphics Character Set
girst [Tue, 4 Jul 2017 18:04:32 +0000 (20:04 +0200)]
`-d` scheme now DEC Special Graphics Character Set

the double width character scheme was always intended for my VT220, not
another (subjectively worse) xterm mode) - therefore, I've replaced it
with the proprietary DEC charset.
TODO: add something to swich charset on beginning/exit

6 years agoadd restart game key, fix free()-segfault
girst [Thu, 29 Jun 2017 22:47:52 +0000 (00:47 +0200)]
add restart game key, fix free()-segfault

if help screen was requested, the program will terminate. this causes
quit() to be called (set by atexit()), which in turn tried to free the
elements of f.c, which have not been created then.

6 years agoihello world^[:wq
girst [Tue, 27 Jun 2017 14:04:33 +0000 (16:04 +0200)]
ihello world^[:wq

Imprint / Impressum