Feb 3



Before entering my final year at uni I consulted an academic advisor to see if I would graduate when I was expecting to. Both degrees that I was studying (IT with an Interaction Design major, and Multimedia) had been restructured and some subjects that used to be core were now electives and vice versa. As it turned out, some of the subjects that I had already finished thinking they were core were now considered electives so now I had to use up the electives that I had been saving on core subjects. One such subject, MMDS1400 (Intro to Scripting) didn't even exist when I started uni but since it was now a core subject I had to take it.

MMDS1400 is a first year scripting course that introduces students to the basics of html and javascript. The major project for Intro to Scripting was to create a game using javasript (and no AJAX as well :-(). A friend of mine and fellow forth year at the time, Dan Wall was also taking the subject and shared my general sense of ridiculousness that two final year students had a first year subject suddenly becoming mandatory. Because the coursework was so simple we decided to push our major project a bit further than what was required to pass. For our javascript game, we chose to implement Chess.

We set about drawing the pieces (in Inkscape, of course) and writing a quick script to free-form move the pieces around the board. Pretty soon we had a very basic chessboard. Our next move (chess pun? no, just a coincidental choice of words) was to restrict the movement of the pieces to within the rules of the game. We started by writing down all of the moves that each type of piece could make and found any patterns that we could exploit in our code; the moves of the Queen, for example, can be found by combining the moves of a Bishop and a Rook. We wrote in the moves available to each piece, added a move timer and our game was done. We had several known limitations (such as moves wrapping around the board, and no Castling or Pawn promotion) but we felt that we had more than satisfied the requirements of the assessment.

A final part of the assessment was to bundle our game in a website explaining the process of constructing our game. You can view our chess site here.

11 Comments

空压机
1:12am, 16 December 2008

提供中国<a href=http://www.compmt.com>空压机</a>网销售螺杆空压机,小型螺杆空压机离等。制造<a href=http://www.pnshar.com/products/pn03c.htm>频闪仪</a>,频闪仪设备,频闪仪产品;<a href=http://www.pnshar.com/products/pn100.htm>白度仪</a>,白度仪产品。综合<a href=http://www.hwwuliu.cn>杭州货运</a>服务,<a href=http://www.hzyswl.cn>杭州物流公司</a>。

空压机
1:15am, 16 December 2008

提供中国<a href=http://www.compmt.com>空压机</a>网销售螺杆空压机,小型螺杆空压机离等。制造<a href=http://www.pnshar.com/products/pn03c.htm>频闪仪</a>,频闪仪设备,频闪仪产品;<a href=http://www.pnshar.com/products/pn100.htm>白度仪</a>,白度仪产品。综合<a href=http://www.hwwuliu.cn>杭州货运</a>服务,<a href=http://www.hzyswl.cn>杭州物流公司</a>。

身份识别
2:05am, 16 December 2008

电脑<a href=http://www.wellcom.cn>身份识别</a>器,身份识别牌,企业身份识别卡,<a href=http://www.wellcom.cn>指纹识别</a>,指纹识别算法,指纹识别原理,<a href=http://www.wellcom.cn>身份认证</a>内容,身份认证技术,身份认证系统,<a href=http://www.wellcom.cn>生物识别</a>技术。

水泵
2:18am, 17 December 2008

上海泵阀网销售各种阀门水泵,产品列表如下:
<a href=http://www.scpv.net>水泵</a>,
<a href=http://www.shttv.com>阀门</a>,
<a href=http://www.shttv.com/product/p41_1.htm>闸阀</a>,
<a href=http://www.shttv.com/product/p81_1.htm>过滤器</a>,
<a href=http://www.scpv.net/Html/727.html>齿轮油泵</a>,
<a href=http://www.scpv.net/Html/675.html>自吸排污泵</a>,
<a href=http://www.scpv.net/html/jypwb.html>搅匀排污泵</a>,
<a href=http://www.scpv.net/html/jypwb.html>自动搅匀排污泵</a>,
<a href=http://www.scpv.net/q8.htm>油泵</a>,
<a href=http://www.scpv.net/Html/702.html>泥浆泵</a>,
<a href=http://www.scpv.net/html/682.html>浓浆泵</a>,
<a href=http://www.scpv.net/Html/664.html>气动隔膜泵</a>,
<a href=http://www.scpv.net/chanp16.html>油桶泵</a>,
<a href=http://www.shttv.com>上海阀门厂</a>。
<a href=http://www.scpv.net/Html/665.html>电动隔膜泵</a>,
<a href=http://www.scpv.net/Html/677.html>锅炉给水泵</a>,
<a href=http://www.scpv.net/html/758.html>循环水真空泵</a>,
<a href=http://www.scpv.net/html/708.html>玻璃钢液下泵</a>,
<a href=http://www.scpv.net/Html/753.html>管道泵</a>,
<a href=http://www.scpv.net/chanp18.html>计量泵</a>。

离心机
1:13am, 18 December 2008

提供<a href=http://www.hzhgjx.com>离心机</a>是专业生产离心机的企业,离心机产品设计新颖;提供<a href=http://www.jitianmachine.com>灌装机</a>,其销售的液体灌装机,膏体灌装机,<a href=http://www.jitianmachine.com>封口机</a>。本<a href=http://www.sanxincd.cn>减速机</a>厂为减速机制造齿轮减速机,摆线针轮<a href=http://www.sanxincd.cn>减速器</a>,蜗轮蜗杆减速。

上海注册公司
8:18pm, 18 December 2008

代理<a href=http://www.jrzhuce.com>上海注册公司</a>服务 , <a href=http://www.jrzhuce.com>注册公司</a>是一家专业从事上海注册公司、提供如何注册公司。提供<a href=http://www.hkjsh.com>香港公司注册</a>报价, <a href=http://www.hkwei88.com>注册香港公司</a>程序, <a href=http://www.hkjsh.com>注册香港公司</a>报价, <a href=http://www.hkwei88.com>香港公司注册</a>注册服务。

注册公司
7:37pm, 21 December 2008

提供登记<a href=http://www.jrzhuce.com>注册公司</a>程序、注册公司流程、上海注册公司流程跟踪,代理<a href=http://www.jrzhuce.com>上海注册公司</a>服务。提供<a href=http://www.hkjsh.com>注册香港公司</a>报价, <a href=http://www.hkwei88.com>注册香港公司</a>程序, <a href=http://www.hkjsh.com>香港公司注册</a>报价, <a href=http://www.hkwei88.com>香港公司注册</a>服务,香港公司注册资本。

模温机
11:06pm, 22 December 2008

产品有<a href=http://www.sfchiller.cn>模温机</a>、速冷速热模温机、高光注塑模温机等。<a href=http://www.sfchiller.cn>冷水机</a>、SML系列冷水机、SML系列冷水机。提供<a href=http://www.zjg12wjx.cn>灌装封盖机</a>设备。<a href=http://www.zjg12wjx.cn>饮料机械</a>设备,张家港饮料机械, Bottle <a href=http://www.zjg12wjx.cn/en/>Filling Machine</a> and more.

铝合金升降机
1:15am, 23 December 2008

销售<a href=http://www.hnwsjj.cn/chp02.asp>铝合金升降机 </a>,铝合金升降机产品;<a href=http://www.hnwsjj.cn/chp02.asp>铝合金升降台</a>,铝合金升降台配件。<a href=http://www.hannovercn.com>高空作业平台</a>流水线,高空作业平台设备;制造<a href=http://www.hannovercn.com>登车桥</a>。

内容管理
2:31am, 23 December 2008

新网站<a href=http://www.globalstech.com>内容管理</a>系统,企业内容管理,提供<a href=http://www.globalstech.com>内容管理系统</a>,网站内容管理系统,制造<a href=http://www.baic.com.cn>恒温恒湿试验箱</a>,制造<a href=http://www.baic.com.cn>高低温试验箱</a>生产商,<a href=http://www.baic.com.cn>盐雾试验箱</a>生产线。

变压器
2:13am, 25 December 2008

全球最多<a href=http://www.chinahongye.net>变压器</a>,电力变压器设备,电力变压器产品;机械<a href=http://www.chinahongye.net>干式变压器</a>,干式变压器市场。<a href=http://www.china-hongye.net>变压器</a>,干式变压器设备。生产<a href=http://www.hysy.net.cn/g1.asp>雷蒙磨</a>、雷蒙磨特别产品以及<a href=http://www.hysy.net.cn>选矿设备</a>,<a href=http://www.hysy.net.cn>破碎机</a>,破碎机产品。

Post a comment

Name
Link
Email (not shown, used for avatar)
Type this into the box: