Where Everybody's Crazy

I'm a missionary in Japan. The name of my mission agency is WEC International. That's supposedly Worldwide Evangelisation for Christ, but I think I have a better idea about what it stands for...

2008-06-12

Javascript go board

I had four things I wanted to do today. I've done two of them and I've started on the third but I'm probably too tired to actually finish it. Unfortunately, the third is the one that I actually have to do today, my sermon for Sunday. So what have I been doing instead? Um, well, messing with Javascript, actually. (OK, I also spent some time helping a local evangelism group learn how to improve their Internet communication, and I spent the afternoon with the old guys in the local community center, so it wasn't a complete messing-about day. But there certainly was some messing-about in it.)

Well, to be honest, I see messing about with Javascript as part of keeping my hand in with the latest technologies, which is useful both for me personally if I need it for professional work, and for the mission as I am frequently called upon to do various computer jobs for them. Even a relatively old technology like Javascript has undergone a seismic shift in the way it's been used and understood, from being a hackabout way to get web sites to do something interesting into being a fully-fledged dynamic programming language with object-orientation and complex data structures.

I've known that Javascript was something that I need to spend some time re-learning, and so I set myself a challenge. (This is the best way to learn or re-learn a programming language - to have something specific you want to do, rather than follow other people's tutorials which don't relate at all to your own goals.) And my challenge is to do with Go.

I study Go (baduk in Korean, weiqi in Chinese, igo in Japanese, and pretty much impossible to Google for in English), a Chinese strategy board game which is very popular here in Japan. It's both a good way for me to relax and to meet and get to know some of the older folks in town. As part of my Go studies, I have a bunch of books of Go problems, which give you an isolated portion of a Go game and ask you to look ahead several moves and come up with the best sequence. The books will tell you several possible enemy responses for your moves, so if you make bad moves, you will be shown why they are bad. One computerised version of this idea is at goproblems.com.

But that particular site requires quite a lot of processing firepower to get going: first, you need a Java client, and second, you need to be connected to the Internet. What I want is a problem engine which can run as an off-line application on my iPod, and for that, the best way is to write it in Javascript. (OK, we can debate whether that's really the best way, but it's certainly the best way for me.)

As a first step to a full-blown Go problem engine, it'd be nice to have a Javascript class which models a Go game, knows when stones have been taken, and so on. So (you guessed it) I wrote one. Please see this page for a very-much-prototype, Javascript-only Go board simulator.


Posted at 17:01:43 in technology javascript go | # | G | P | 0 Comments
Language
Japanese English
Links

Tags and Tools
« 2008-06 »
S M TWTFS
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30

RSS


I am...

lathos: Going from iPod 1.x to 2.x and severely regretting it.


Photoblog

DSC_4810.jpg

DSC_4823.jpg

DSC_4828.jpg

DSC_4827.jpg

DSC_4855.jpg


Speedblog

http://glosoli.blogspot.com/2005/09/encrypted-thumb-drive-and-autoplay.html # it's my blog: Encrypted thumb drive and autoplay howto

http://daiyainn.gooside.com/ # 京都だいや旅館 京へおこしやす

http://www.e-chords.com/guitartab.asp?idmusica=96629&keyb=true # Where Could I go Tab by Ben Harper - E-Chords

http://www.inmamaskitchen.com/RECIPES/RECIPES/Soups/vegetable_stock.html # Moosewood's Vegetable Stock Recipe

http://www.foodnetwork.com/food/recipes/recipe/0,,FOOD_9936_8389,00.html # Good Eats Roast Turkey Recipe: Recipes: Food Network

http://www.reallivepreacher.com/node/203 # You Ain't Jesus, PreacherPart Two: Losing The Language of Love

http://leiterreports.typepad.com/blog/2005/06/95_theses_on_th.html # Leiter Reports: A Philosophy Blog: 95 Theses on the Religious Right

http://cbae.nmsu.edu/~dboje/teaching/338/traits.htm # TRAITS

http://jweb.kokken.go.jp/gitaigo/index.html # 擬音語・擬態語 - 日本語を楽しもう! -

http://www.nanzan-u.ac.jp/SHUBUNKEN/publications/jjrs/jjrs_cumulative_list.htm # Japanese Journal of Religious Studies: Cumulative list of Essays & Book Reviews

http://www.myspace.com/chloecfrancis # www.myspace.com/chloecfrancis

http://www.solar.ifa.hawaii.edu/cgi-bin/StrikeProb?latitude=+35.38&longitude=-136.26&location=Nagahama,+Japan # Tropical Cyclone Strike Probabilities for Nagahama, Japan

http://www.missionjapan.org/mission/jmissionorg.html # Japan Mission Organization List

http://www.aquasapone.com.au/soapmaking/showergel_soap.html # AquaSapone - How to make shower gel from natural handmade soap

http://www.ultimate-guitar.com/tabs/d/danilo_montero/la_unica_razon_crd.htm # La Unica Razon Chords by Danilo Montero @ Ultimate-Guitar.Com


Musicblog

Seal – Crazy (acoustic)

Holly Cole – (Looking For) The Heart of Saturday Night

Oasis – Don't Look Back in Anger

Powered by Glob!
Search: