emulating-2048

所属分类:游戏机
开发工具:C++
文件大小:0KB
下载次数:0
上传日期:2015-11-30 20:53:11
上 传 者sh-1993
说明:  在C++中娱乐2048游戏,在控制台中,
(Recreation of 2048 game in C++, in console,)

文件列表:
emulate_2048.sln (942, 2015-11-30)
emulate_2048/ (0, 2015-11-30)
emulate_2048/Board.cpp (4556, 2015-11-30)
emulate_2048/Board.h (2317, 2015-11-30)
emulate_2048/Cell.cpp (881, 2015-11-30)
emulate_2048/Cell.h (2258, 2015-11-30)
emulate_2048/ConcurrentAdaptor.h (4853, 2015-11-30)
emulate_2048/HumanSolver.h (1284, 2015-11-30)
emulate_2048/Key.h (183, 2015-11-30)
emulate_2048/MatrixView.h (7401, 2015-11-30)
emulate_2048/PrintingProperties.h (544, 2015-11-30)
emulate_2048/RandomSolver.h (771, 2015-11-30)
emulate_2048/ScopeExit.h (659, 2015-11-30)
emulate_2048/Solver.h (2636, 2015-11-30)
emulate_2048/SolversFactory.h (1875, 2015-11-30)
emulate_2048/Tests.cpp (2921, 2015-11-30)
emulate_2048/Tests.h (419, 2015-11-30)
emulate_2048/Visitor.h (3093, 2015-11-30)
emulate_2048/emulate_2048.cpp (2228, 2015-11-30)
emulate_2048/emulate_2048.vcxproj (5007, 2015-11-30)
emulate_2048/emulate_2048.vcxproj.filters (2587, 2015-11-30)
emulate_2048/emulate_2048.vcxproj.user (162, 2015-11-30)
emulate_2048/platform_specific.h (816, 2015-11-30)

# emulating-2048 Recreation of 2048 game in C++, in console Original game: http://gabrielecirulli.github.io/2048/ I had a task to write smth, so I wrote this. One can pretty easily add his own solvers, I've tried to comment pretty heavily. Of course, overall design migh be improved) Everything is build in VS2015, and you need boost The basic structure is: Board - the Game basically. Inside - it's a one dimentional array of Cells. Operated either directly, or through MatrixView MatrixView - template, that gives interface to iterators range, so one can look at them as double dimntional + you can actually get rows and columns, which is nice. Should be rewritten using some range library. Boost actually has multidimentional array, but after 40 minutes I gave up and made my own bycicle. For running automatic solvers, an adaptor was written, that does everything concurrently and gives the current situation, if you mash a button.

近期下载者

相关文件


收藏者