社区
C#
帖子详情
To troublemaker****:
TheAres
2003-08-03 12:41:47
各位troublemaker****,不管水源的事情如何,请不要来技术区灌水。特别是发长篇的空白,搞得看帖子很费劲。
谢谢你的理解!
...全文
164
22
打赏
收藏
To troublemaker****:
各位troublemaker****,不管水源的事情如何,请不要来技术区灌水。特别是发长篇的空白,搞得看帖子很费劲。 谢谢你的理解!
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
22 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
yohomonkey
2003-08-04
打赏
举报
回复
我看不光要封ID连Ip也封了他!
真是垃圾!
nyucv
2003-08-04
打赏
举报
回复
杀了这白痴!
我的贴也被搞了:(
zhehui
2003-08-04
打赏
举报
回复
troublemaker014()真的没什么道德修养。
我们应该建立一个良好的环境。
brightheroes
2003-08-04
打赏
举报
回复
同意楼上的观点
lbx1979
2003-08-04
打赏
举报
回复
心理有问题吧,正常人哪有这样的啊?
pbtech
2003-08-04
打赏
举报
回复
md,混蛋
AhBian
2003-08-04
打赏
举报
回复
典型的 Cracker 心态——想引人注目。
看来 CSDN 要准备一个识别和防范机制。
hellslayerbaby
2003-08-04
打赏
举报
回复
又来了个troublemaker014() !!!可恶
xu0007
2003-08-04
打赏
举报
回复
杀!
angelior
2003-08-04
打赏
举报
回复
呵呵!
勸他 浪子回頭他不聽
希偌
2003-08-04
打赏
举报
回复
响应斧头的号召,回java版封了这小子!
awjx
2003-08-04
打赏
举报
回复
哗众取宠,以为他自己了不起,好像以为自己很有后台,拷!嚣张!
杀!!!看他还敢不敢!
LiSDN
2003-08-04
打赏
举报
回复
who is troublemaker?i think he is shit,
甴曱
2003-08-03
打赏
举报
回复
good
hellslayerbaby
2003-08-03
打赏
举报
回复
建议大斑竹全部封杀!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!11
dahuzizyd
2003-08-03
打赏
举报
回复
其他版也一样,从昨天晚上就开始了,是在灌水区,今天一早就到咱们这来了。
雪狼1234567
2003-08-03
打赏
举报
回复
把它杀掉,
这种在太可恶
而且特没劲
TheAres
2003-08-03
打赏
举报
回复
去其它板块看看,也这样。
真怀疑是用什么机器灌水。
dahuzizyd
2003-08-03
打赏
举报
回复
是啊,我都忍不住要骂人了
TheAres
2003-08-03
打赏
举报
回复
再看见就全部封杀!它过份!
加载更多回复(2)
2020_2021学年八年级英语下册Unit3AnimalsAreOurFriendsLesson16TheBearEscape
2020_2021学年八年级英语下册Unit3AnimalsAreOurFriendsLesson16TheBearEscaped课时作业新版冀教版20210617155
广东省广州市2018年中考英语学科模拟题七20180709268
广东省广州市2018年中考英语学科模拟题七20180709268
五年级英语作文淘气的我TheNaughtyMe
五年级英语作文淘气的我TheNaughtyMe
iOS-2048-master
2048游戏源码 # 2048 This is a derivative and the iOS version of the game 2048. In the very unlikely case that you don't know what it is, you can check it out [here](https://github.com/gabrielecirulli/2048). Made just for fun! You can find it on the [App Store](https://itunes.apple.com/us/app/2048-and-more!/id848859070?ls=1&mt=8).
## AI An AI is added, thanks to [DJBen](https://github.com/DJBen)! Tap "Hint" to show hint (e.g. Move left/right/up/down); tap "Auto Run" to run AI automatically. Check it out in the `AI` branch. You can also check out [this demo video on YouTube](https://www.youtube.com/watch?v=GF0ANNPpF8E). Thanks to [ov3y](https://github.com/ov3y/2048-AI)'s Javascript version that gave me (DJBen, that is) inspiration. ### Issues and pending improvements Currently the searching depth is 2 and it fails sometimes. You can increase the number to 3 or more by changing the return value of `- (NSInteger)maximumSearchingDepth` in `M2GlobalState+AI.h`. Ideally, the AI should search from 0 depth to infinity and have a time out, it records the current best move when finish searching the current depth and stops immediately when timed out and return the best move so far. However, I have a little bit of
tr
ouble
when dealing with `NSOperationQueue` so I didn't do it this way. Now the AI only searches at the specified `-maximumSearchingDepth`. ## The Game Since it is a *derivative* of the original 2048, it is not the *same*. More explicitly, it has the following additions: * **Three board sizes**: 3x3, 4x4 and 5x5. The smaller the board is, the fewer cells you have, and the harder the game is.* * **Three game modes**: The original Power of 2, i.e. combining two tiles of the same value to produce their sum. The Power of 3, i.e. combining *three* consecutive tiles of the same value to produce their sum. Not surprisingly, this is pretty hard with the 3x3 board, although I found it pretty easy to get 81. 243 is a different story... And the Fibonacci sequence, i.e. combining two adjacent numbers in the sequence 2, 3, 5, 8, 13... (I omitted the two 1's in the beginning) to produce the one next to the larger value. This is pretty
tr
icky.
Tr
y it out and you will know what I mean. * **Three themes**: I made a bright theme and a 'joyful' theme in addition to the original one. In case you wonder how to do themes in iOS. (There may be a better way, but themes are verbose in nature, because you *have to* specify all the colors, fonts, etc.) ## The Technology This version of 2048 is built using SpriteKit, the new 2-D game engine Apple in
tr
oduced to iOS 7. As a result, it requires iOS 7 to run. On the other hand, this app has the following two great properties: * It does not rely on *any* third-party library. Not that Cocos-2D is not great, but the fact it's using SpriteKit means that it does not have any dependencies. * It does not have any images. That's right. The entire UI is done either via UIKit, or by Core Graphics. Check out the related files to see how that is done, if you are curious. You should be able to download the source, and build and run without problem. However, please note that you may not want to run it in the simulator unless you don't have an Apple Developer account. SpriteKit does use OpenGL, and simulating that using CPU will cause your computer to take off. ## The Code First off, the best thing about the code is that it's pretty well documented. Most methods have the Apple-style documentation, which means that you can
tr
iple-click on the method name to get its documentation. The code started to resemble the s
tr
ucture of the original 2048. So for example, it has a game manager, a board class, a tile class, etc. I at least *
tr
ied* to stick to MVC as much as possible. Here is a brief summary to get you started: * The `M2GameManager` class con
tr
ols the game logic. There is only one action in the game: move. So the majority of that class is handling the move. The rest is checking whether you've won or died, etc. * The `M2Grid` class is the data s
tr
ucture for the board. The original 2048 used a 1-D array, but heck, 2-D array doesn't seem to be too bad here! ...except looping it is a bit ugly, so I made a `forEach` helper function. * The `M2Cell` class is the "slot"s. They are not the tiles themselves. The benefit of having this class is that the cells never move, so they are good references and they don't mess stuff up. * The `M2Tile` class is the actual tile, and **this** is the actual SpriteKit class. If all you want is some sample code for SpriteKit, here it is. I believe my animations are smoother than the other 2048 on the App Store, and are closer to the original animation. * The `M2GlobalState` class is a global class accessible from anywhere in the universe. Well, global stuff is evil, right? At least so we are told. But, it is at least better to encapsulate the global stuff into one single object (namespace), and that's a singleton right there. * The `M2Theme` class and its subclasses con
tr
ol the theme. * There are also some con
tr
oller classes and view classes. It's probably a better idea to do the Game Over scene in SpriteKit, but I was lazy so I faked it using a view. The `M2GridView` class is the one that draws the board, btw. ### Con
tr
ibuting If you'd like to con
tr
ibute, great! That's more than welcome. If you do
make
improvements to it, remember to put yourself in the "About 2048" page to get yourself credit. If you'd like to fork and
make
your own version, that's also great! Feel free to tinker with it however you'd like. It may not be a terribly good idea to change the font, add some ads, and submit to Apple, though. #### Con
tr
ibutors * Danqing Liu (me) * [Scott Matthewman](https://github.com/scottmatthewman) * [Sihao Lu](https://github.com/DJBen) ## Licence and Other 2048 for iOS is licenced under the MIT license. If you find the source code somewhat useful, all I ask is to download it from the [App Store](https://itunes.apple.com/us/app/2048-and-more!/id848859070?ls=1&mt=8), so I know that *someone* has seen it. Relax: It is free; it does not have any ads or weird stuff; it does not send you push notifications to ask you to go back and play it. You may also consider to [donate](https://github.com/gabrielecirulli/2048) to the
make
r of the original 2048 if you'd like, of course. (:
大学英语精读2 课后答案
大学英语精读2 课后答案,欢迎大家下载,供学习参考。
C#
111,098
社区成员
642,554
社区内容
发帖
与我相关
我的任务
C#
.NET技术 C#
复制链接
扫一扫
分享
社区描述
.NET技术 C#
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧
+ 用AI写文章