Battleship!

Battleship! is my term project for 15-112 in summer school. It is a modified version of the original board game Battleship. The game is implemented in Python 2.7 with Pygame.

Unlike traditional Battleship, this WILD version allows players to move the ships and scan a small area to reveal the enemy. Players win by either destroying all enemy ships or moving any ship to the enemy’s back line.

Continue reading “Battleship!”

Online Ranking System for Hearthstone Competition

The Online Ranking system for SCIE eSports Club finally came online! Now this system will be used to facilitate the HearthStone Ranking Competition.

Contestants can login using their personal account, see their current score and rank, start new challenges and view challenge history. Meanwhile staff can manage the system through the admin view, which allows them to manage contestant’s info and set competition results.

The system is based on DJango, which is, in my opinion, one of best web frameworks. I self-learnt DJango from its online tutorial and found that it’s extremelly powerful, manageable, and has lots of conveinent features which save me hours of work.

Since this is my first try writing a web application and it’s still in development, please DON’T TRY TO EXPLOIT/HACK the system! If you find any bugs or have any comments, please tell me and we can fix it together.

How to Access

The system can be accessed directly at http://hs.esportssz.com/hs/

Also, during the competition season, you can access it using the menu of the Official Wechat account (scieesports).

Continue reading “Online Ranking System for Hearthstone Competition”

New Game: Mini Brawl

Check out my newly made game: Mini Brawl: Ice Golem VS Sci-Fi.

Mini Brawl: Ice Golem VS Sci-fi is a role-playing game in which the player controls the mighty clumpy ice golem to fight against waves of ferocious sci-fi enemies. Unleash powerful frost magic onto these autonomous robots and drones; Use energy to cast deadly ice-balls to deal massive damage or to gain mobility to avoid an unfavorable fight; and, salvage their waste and become even more powerful!

minibrawl_3

minibrawl_1

How to Play

Default Keys (Can be changed in game):

  • WASD: Move the character
  • Mouse Left Click: Basic Attack
  • Space: Cast Ice Ball
  • Left-shift: Sprint

Win the game by eliminating all the enemies and the final Boss.

minibrawl_2

Continue reading “New Game: Mini Brawl”

Oops… STEP 3 Maths Question (1996)

Here’s an interesting and doable STEP question on complex numbers (STEP 3 1996). Unlike most STEP questions, this one is doable: Not that hard to figure out, but still needs some thought. Give it a try!

Knowledge you probably need (But not MUSTs):

  • Solving Trignometry Equation
  • De Moivre’s Theorem
  • Vieta’s formulas for cubic polynomials

step3_complexnumber_question

 

Looking for the solution? Continue reading “Oops… STEP 3 Maths Question (1996)”

COM域名

已经用markwu.me这个域名几年了,总是有很多人问我.ME是什么高端的后缀,不应该是.COM之类的吗 😥  其实我个人也一直很想要com的域名,最近也一直在找,可惜markwu.com这个域名被一英国的华人设计师注册了,无奈之下只好买了个MAINCARRY.COM,是我美服LOL的昵称。以后大家可以通过这个域名和现在的MARKWU.ME来访问我的小站,内容是完全一样的。

也就是说,各位现在可以使用以下这些域名来访问我的小站:

  • markwu.me
  • maincarry.com
  • markwu.xyz (新)

SCIE电竞社寒假战队赛

寒假战队赛 hold by SCIE e-Sports club

时间 :

初赛 2015/2/11

复赛 2015/2/12

决赛 2015/2/13

赛制

第一轮(DAY1):20 进 5 单淘 每队两局 共 15 局

上午 9 – 12   下午 1 – 6

 

第二轮(DAY2):5 进 2 积分 每队 4 共 10 局

中午 12下午6

 

第三轮(DAY3):2 进 1 BO3 3

【比赛对阵表】及【具体时间表】会在初赛前一晚发出(2014/2/10)

规模 : 最多20 支队伍

大区比赛服 电信区

奖金冠军 500 元人民币,亚军 300 元人民币 将会通过支付宝转账的方式给出

 

Continue reading “SCIE电竞社寒假战队赛”

海外WordPress国内访问加速方法

使用新服务器运行这个WordPress站点也差不多有半年了,虽说是海外主机,记得刚安装的时候测试国内直连速度也还是可以接受的。直到最近大概是2014年11月份以后国内访问明显开始抽风,直连的话速度极慢,几乎无法打开,使用https连接也无济于事,可以说在国内几乎完全无法本站,问题非常严重。

最初还以为是本站被墙了,但幸运的是网站至少还能打开,只是连接速度感人(打开需要20秒左右)。后又怀疑是线路问题,但同服务器下的其他站点大部分情况(夜间偶尔抽风)下仍运行良好,所以问题应该在WordPress本身上。Google一下发现原来又是天朝惹得好事:原来是WP主题使用的Google Fonts被墙,导致国内用户浏览时无法读取字体从而大幅拖慢打开速度,所以第一步是要避开Google Fonts。

Google Fonts解决方法:安装WP插件“谷歌字体与Gravatar头像加速”。使用国内大神自己维护的字体库替换Google字体库,同时解决Gravatar头像问题。

为了进一步加速站点,接下来要开启缓存cache。可以通过安装相关WP缓存插件来实现。

本站使用缓存插件:“WP Super Cache”。安装需要配置wp-config文件(大部分情况下是自动的,但如果出现问题插件有很详细的安装教程)

海外站点如果想要进一步提速,可以使用CDN服务进行镜像存储,大幅提高国内用户直连速度。已备案域名可以直接选择国内CDN服务(请自行搜索),未备案域名可以选择七牛云(需要身份验证)或其他具有香港节点的CDN服务。

七牛云注册链接(附带本站邀请):https://portal.qiniu.com

国际CDN推荐请参考本网页: Top CDN Services to Make Your WordPress Site Blazingly Fast (and More Reliable)

经过以上几种优化,本站成功解决了国内用户的连接问题,也希望这篇文章能够帮助更多像笔者一样的Wordpress新手。

LOL国庆战队赛 剑指s5战队 夺冠

本次国庆战队赛已经圆满结束,来自深圳高级中学的剑指s5战队以2:0的比分获得冠军,获得人民币350元的冠军奖励!

感谢各学校战队的大力参与,同时感谢各位对我们电竞社工作的支持,祝各位假期愉快!

请继续关注我们的微信公众号“SCIE电竞社”获得更多比赛信息。