Commit Graph

41 Commits

Author SHA1 Message Date
Tiehuis
b7c45f7f87 Add some option mechanics 2014-12-06 12:57:07 +13:00
Tiehuis
569e11710f vt100 simple mode added 2014-12-06 12:02:12 +13:00
Tiehuis
01af91121b Fix curses not displaying until keypress. Callback example demonstrating some pseudo-animation 2014-12-06 11:49:16 +13:00
Tiehuis
2b1d230330 Alter looping variables to better describe intent 2014-12-06 11:20:13 +13:00
Marc
387f37a64a Abstract engine and drawing logic apart from one another. Keep gamestate in a struct 2014-12-05 10:27:25 +13:00
Marc
2195f44005 Don't need flog of negative integers 2014-12-02 00:07:34 +13:00
Tiehuis
2fef5a4822 Merge pull request #6 from besser82/improvements
some minor improvements
2014-12-01 16:29:06 +13:00
Björn Esser
27fd8b3218 Fix compiler warnings about unused result 2014-11-03 10:53:34 +01:00
Björn Esser
dfcc1f5634 Makefile should obey LDFLAGS from $ENV 2014-11-03 10:53:33 +01:00
Björn Esser
042e3fde77 Add basic gitignore 2014-11-03 10:53:29 +01:00
Tiehuis
e9e6ce2715 Readd some logic details that are needed. Fix colors on some blocks being black 2014-09-13 09:52:55 +12:00
Tiehuis
2dab267db2 Merge pull request #5 from AMDmi3/auto-color
Autodetect color support, allow override through arguments
2014-09-13 09:29:20 +12:00
Tiehuis
5781fc6c16 Merge pull request #4 from AMDmi3/highscore-handling
Fix highscore file handling
2014-09-13 09:28:28 +12:00
Dmitry Marakasov
a49ed8dd36 Autodetect color support, allow override through arguments 2014-09-12 20:23:57 +04:00
Dmitry Marakasov
f2aa753d49 Fix highscore file handling
Don't create highscore file in the current directory, instead
create in under $XDG_DATA_HOME/2048/highscore or
$HOME/.local/share/2048/highscore as modern apps should.
2014-09-12 20:22:52 +04:00
Tiehuis
37c1d3607e Fix logic error 2014-09-12 23:36:52 +12:00
Tiehuis
8843fcb658 Cleaned up source, directories, and added header file to improve general readability 2014-09-12 23:17:04 +12:00
Tiehuis
1bf0c51864 Merge pull request #3 from AMDmi3/makefile-fixes
Makefile fixes
2014-09-12 18:56:54 +12:00
Dmitry Marakasov
ba0b92ea9a Add clean target 2014-09-09 00:26:41 +04:00
Dmitry Marakasov
fe0d23d740 Respect CC and CFLAGS 2014-09-09 00:26:31 +04:00
Tiehuis
73d328c3a0 Merge pull request #2 from arbu/master
Some changes to the logic, so the game is closer to the original
2014-04-19 18:38:52 +12:00
Aaron Bulmahn
cceb83134b added Makefile 2014-04-17 22:20:40 +02:00
Aaron Bulmahn
99c159c982 fixed "game over" message not appearing 2014-04-17 22:17:26 +02:00
Aaron Bulmahn
267678ed02 fix logic: don't add tiles if nothing moved 2014-04-17 22:07:32 +02:00
Aaron Bulmahn
f25b57e018 fix logic: combine tiles on the right side 2014-04-17 22:02:04 +02:00
Tiehuis
2c472777f4 Merge branch 'master' of https://github.com/Tiehuis/2048-cli 2014-03-21 12:35:53 +13:00
Tiehuis
51845247e2 Updating readme options overview 2014-03-21 12:32:01 +13:00
Tiehuis
43f1aa4c60 Merge pull request #1 from christopherraa/master
Corrected application parameter names
2014-03-21 12:30:06 +13:00
Christopher Rasch-Olsen Raa
e9d9623232 Corrected application parameter names 2014-03-20 22:46:23 +01:00
Tiehuis
3eb8e6086c Changes to the block spawning so either a 2 or 4 is spawned each turn with a 3:1 ratio 2014-03-17 18:45:32 +13:00
Tiehuis
d10bf180ca Added picture of curses version featuring colors. 2014-03-15 14:02:50 +13:00
Tiehuis
ee2bf9042c hiscores. persistent (saves to file). 2014-03-15 10:52:49 +13:00
Tiehuis
90df5c62a4 Added simple color support for ncurses ver. Supposedly the game starts at 2 usually; lets change that 2014-03-15 09:45:55 +13:00
Tiehuis
014bf8b751 Merge branch 'master' of https://github.com/Tiehuis/2048-cli 2014-03-14 19:03:36 +13:00
Tiehuis
cca0589b70 Added ncurses version 2014-03-14 19:02:47 +13:00
Tiehuis
9de291f188 Changed print function so it draws the correct border lengths on any grid size 2014-03-14 14:19:37 +13:00
Tiehuis
83fa0baba5 Fixing readme links 2014-03-13 13:14:55 +13:00
Tiehuis
3c95ff2cb0 Updated readme 2014-03-13 12:51:24 +13:00
Tiehuis
7b9ef39ac7 Added help command and removed warnings 2014-03-13 12:35:03 +13:00
Tiehuis
499a2525ef adding initial source 2014-03-13 10:32:34 +13:00
Tiehuis
ae9eae1e66 Initial commit 2014-03-12 14:26:21 -07:00