GIMP

Similar documents
GIMP

from Tkinter import * root = Tk() c0 = Canvas(root, width = 400, height = 300) c0.pack() image_data = PhotoImage(file = c1.gif ) c0.create_image(200,

cards.gif from Tkinter import * root = Tk() c0 = Canvas(root, width = 400, height = 300) c0.pack() image_data = PhotoImage(file = c1.gif ) c0.create_i

A, K, Q, J, 10, 9, 8, 7, 6, 5, 4, 3,

GIMP import javafx.application.application; import javafx.scene.scene; import javafx.scene.canvas.canvas; import javafx.scene.canvas.graphicscontext;

JavaScript 1.! DOM Ajax Shelley Powers,, JavaScript David Flanagan, JavaScript 2

javascript key

untitled

paper.pdf

19 ステップで 2 大人気スクリプト言語を学ぶ GUI のあるアプリを作る STEP11 から STEP12 までまとめ 1.Python での GUI アプリ作成 Python は標準ではグラフィックスの機能を持ちませんが ライブラリを使うことで GUI のアプリを作成することができる そこで

1

HOW DO I WebBrowser コントロールで HTML5 を 使用するには ここでは以下の手順で説明します Video 要素を使用する Silverlight と JavaScript の間でやり取りする Canvas 要素を使用する Video 要素を使用する 1. Visual Stu

第 2 部 JavaScript 編 17 演習の答え 17.1( 演習 3-3)1 列目の width を 200px 2 列目を 300px にしなさい pr3-3.html <title> </title> <table border="1" style="border-collapse:co

インターネットマガジン2001年9月号―INTERNET magazine No.80

JavaScript の使い方

chap04.indd

SmartBrowser_document_build30_update.pptx

07_経営論集2010 小松先生.indd

Java演習(4) -- 変数と型 --

インターネットマガジン1999年7月号―INTERNET magazine No.54

JavaScript によるはじめてのアルゴリズム入門の特徴 1.HTML5+JavaScript で標準的なグラフィックス処理が可能 C のグラフィックスは各処理系に依存しますが HTML5+JavaScript では標準のグラフィックスメソッドを使用できます これにより はじめてのアルゴリズム入

SVG資料第6回目(その3) SVGとHTMLの間でデータを交換する

CodeIgniter Con 2011, Tokyo Japan, February

第 8 回の内容 クライアントサイド処理 JavaScript の基礎

ÉvÉçPM_02

JavaScript演習

Microsoft PowerPoint _1a-HTML.pptx

Vol.56 No (Mar. 2015) Canvas SVG HTML Web Viewport Library UML Canvas SVG 1,000 HTML SVG Viewport Library Viewport Library HTML HTML Web H

Level1_ key

ch31.dvi

1.1. jquery 1 jquery jcanvas jquery javascript jquery JavaScript jquery $() JavaScript JavaScript jquery Googlr Chrome Eddge(Enternet Explorer) Web jq

8 if switch for while do while 2

演習室の PC のハードディスクには演習で作成したデータは保管できません 各 PC の ネットワーク接続 ショートカットからメディア情報センターのサーバーにアクセスしてください (Z ドライブとして使用できます ) 演習名 使用するフォルダ 演習 1 Z: Web データ管理 演習

1.1. jquery 1 jquery jcanvas javascript jquery JavaScript jquery $() JavaScript JavaScript jquery Googlr Chrome Eddge(Enternet Explorer) Web Web jquer

Web±ÜÍ÷¤Î³Ú¤·¤µ¤ò¹â¤á¤ëWeb¥Ú¡¼¥¸²ÄÄ°²½¥·¥¹¥Æ¥à

SVG資料第10回目(その2) Ajaxによる同期通信と非同期通信の違い

< F2D825282CC947B909482CC A815B83682E6A>

< F2D82518CC282CC D2E6A7464>


¥×¥í¥°¥é¥ß¥ó¥°±é½¬I Exercise on Programming I [1zh] ` `%%%`#`&12_`__~~~ alse

( )

listings-ext

インターネットマガジン2001年2月号―INTERNET magazine No.73

< F2D F B834E2E6A7464>

untitled


Taro13-第6章(まとめ).PDF

1.1. jquery 1 jquery jcanvas jquery javascript jquery JavaScript jquery $() JavaScript JavaScript jquery Googlr Chrome Eddge(Enternet Explorer) Web jq

2.2 Java C main Java main 2 C 6 C Java 3 C Java ( ) G101Hello.java G101Hello main G101Hello.java /* G101Hello */ class G101Hello { /* main */ public s

Microsoft Word - PaLearn_manual_05c.doc

: Shift-Return evaluate 2.3 Sage? Shift-Return abs 2 abs? 2: abs 3: fac

JavaScript¥×¥í¥°¥é¥ß¥ó¥°ÆþÌç


PowerPoint プレゼンテーション


Microsoft PowerPoint _秀英体の取組み素材(予稿集).ppt

1 ななちゃんの IT 教室ライブラリに挑戦の巻 第 1 回ライブラリとは なな : ライブラリって何? 図書館? 先生 : 今 ここで話題にしているのは Javascript で便利に使えるプログラム ( 関数群 ) を集めたもののことです なな : 図書館で本を借りて読むように 必要な関数を借り

Web データ管理 JavaScript (3) (4 章 ) 2011/12/21( 水 ) 湘南工科大学講義資料 Web データ管理 (2011) 阿倍 1/18

第10回 コーディングと統合(WWW用).PDF

医療者のための情報技術入門第 9 回プログラムがはたらくしくみを学ぶ (2) 日紫喜光良 概要 1. はじめに- 具体例から ここから Javascript のプログラミング入門 次はどうする--

アプレットの作成

外為オンライン FX 取引 操作説明書

1 2

untitled

INDEX

INDEX


1002goody_bk_作業用

地域と文化資産


ななちゃんの IT 教室 マルチタートルでオブジェクトを理解しようの巻 by 複数のタートルを操作する環境でななちゃんがオブジェクト指向とは何かを勉強します 第 0.7 版 2017 年 5 月 7 日 フリー素材

< F2D82B682E182F182AF82F12E6A7464>

I 11

< F2D92DE82E8914B82CC977088D32E6A7464>

d_appendixB-asp10appdev.indd

サービス付き高齢者向け住宅賠償責任保険.indd

スライド 1

untitled

macromedia Dreamweaver macromedia Fireworks macromedia Flash

1

( )$("canvas").drawarc({strokestyle:"red", x:100, y:100, radius:20, start:0, end:360); drawline(x1:, y1:,... xn:, yn:) drawline n 2 n 3 x1: y1: xn: yn

1 ななちゃんの IT 教室アニメーションプログラムを作ろうの巻 第 1 回 ハローワールド なな これって 朝日新聞の ののちゃんの DO 科学 のパクリ? 先生 パロディって言ってちょうだい 家政婦のミタ ( 家政婦は見た のパロディ ) クレヨンしんちゃんのダズニーランド ( ディズニーランド

Microsoft Word - W3C's_ARIA_Support


2 2 ( M2) ( )

NetworkApplication-09

JavaScript演習

~/WWW-local/compIID (WWW IID ) $ mkdir WWW-local $ cd WWW-local $ mkdir compiid 3. Emacs index.html n (a) $ cd ~/WWW/compIID

11 Bootstrap Font Awesome $ cd ~/projects/modest_greeter $ npm install --save jquery popper.js tether --save package.json depen

¥×¥í¥°¥é¥ß¥ó¥°±é½¬I Exercise on Programming I [1zh] ` `%%%`#`&12_`__~~~ alse

World Wide Web =WWW Web ipad Web Web HTML hyper text markup language CSS cascading style sheet Web Web HTML CSS HTML

Web プログラミング 1 JavaScript (4) (4 章 ) 2013/7/17( 水 ) 日時 講義内容 4/10 ( 水 ) ガイダンス Web (1 章 ) 4/17 ( 水 ) HTML+CSS (1) (2 章 ) 4/24 ( 水 ) HTML+CSS (2) (2 章 ) 5

(Java/FX ) Java CD Java version Java VC++ Python Ruby Java Java Eclipse Java Java 3 Java for Everyone 2 10 Java Midi Java JavaFX Shape Canvas C

19 3!! (+) (>) (++) (+=) for while 3.1!! (20, 20) (1)(Blocks1.java) import javax.swing.japplet; import java.awt.graphics;

< F2D834F838C A815B A CC>

< F2D B838A835882CC8CF68EAE2E6A7464>

10 (1) s 10.2 rails c Rails 7 > item = PlanItem.new => #<PlanItem id nil, name nil,...> > item.name = "" => "" > item.valid? => true valid? true false


Thread

Webデザイン論

Transcription:

(JavaScript ) Javascript 2 1. 2 2. 52 3. A, K, Q, J, 10, 9, 8, 7, 6, 5, 4, 3, 2 4. 13 5. 6. 7. 8. 9. 13 10. 11. 12. JavaScript.png 1

GIMP 200 300 2

<html> <head> <script> var ctx; function init() { var canvas = document.getelementbyid("canvas"); ctx = canvas.getcontext("2d"); var card = document.getelementbyid("c01"); ctx.drawimage(card, 100, 100); </script> </head> <body onload="init()"> <canvas id="canvas" width="400" height="400"></canvas> <img id="c1" src="c01.png" style="display:none" /> </body> </html> <html> <head> <script> var ctx; function init() { var canvas = document.getelementbyid("canvas"); 3

ctx = canvas.getcontext("2d"); var card = new Image(); card.src = "c01.png"; ctx.drawimage(card, 0, 0, 200, 300, 100, 100, 71, 96); </script> </head> <body onload="init()"> <canvas id="canvas" width="400" height="300"></canvas> </body> </html> Google Chrome JavaScript Google Chrome VC++ Canvas Python JavaScript Python <html> <head> <script> var ctx; var carddeck = []; 4

function Card(suit, rank, image, backimage) { this.suit = suit; this.rank = rank; this.image = image; this.backimage = backimage; function drawcard(card, x, y, flag) { if (flag == true) { ctx.drawimage(card.image, 0, 0, 200,300, x, y, 71, 96); else { ctx.drawimage(card.backimage, 0, 0, 200,300, x, y, 71, 96); function init() { var canvas = document.getelementbyid("canvas"); ctx = canvas.getcontext("2d"); var image = document.getelementbyid("c1"); var backimage = document.getelementbyid("z1"); var card = new Card(0, 0, image, backimage); drawcard(card, 100, 100, true); drawcard(card, 200, 100, false); </script> </head> <body onload="init()"> <canvas id="canvas" width="1000" height="600"></canvas> <img id="c1" src="c01.png" style="display:none" /> <img id="z1" src="z01.png" style="display:none" /> </body> </html> 5

function Card(suit, rank, image, backimage) { this.suit = suit; this.rank = rank; this.image = image; this.backimage = backimage; function drawcard(card, x, y, flag) { if (flag == true) { ctx.drawimage(card.image, 0, 0, 200,300, x, y, 71, 96); else { ctx.drawimage(card.backimage, 0, 0, 200,300, x, y, 71, 96); (x, y) flag==true flag==false card_set() <html> <head> <script> var ctx; var carddeck = []; function Card(suit, rank, image, backimage) { 6

this.suit = suit; this.rank = rank; this.image = image; this.backimage = backimage; function drawcard(card, x, y, flag) { if (flag == true) { ctx.drawimage(card.image, 0, 0, 200,300, x, y, 71, 96); else { ctx.drawimage(card.backimage, 0, 0, 200,300, x, y, 71, 96); function cardset() { var backimage = document.getelementbyid("z1"); carddeck = []; for (var s = 0; s < 4; s++) { for (var r = 0; r < 13; r++) { var name = ""; switch (s) { case 0: name = "c"; break; case 1: name = "d"; break; case 2: name = "h"; break; case 3: name = "s"; break; name = name + (r + 1); var image = document.getelementbyid(name); var card = new Card(s, r, image, backimage); carddeck.push(card); function init() { var canvas = document.getelementbyid("canvas"); ctx = canvas.getcontext("2d"); cardset(); drawcard(carddeck[0], 100, 100, true); drawcard(carddeck[50], 200, 100, true); </script> </head> 7

<body onload="init()"> <canvas id="canvas" width="1000" height="600"></canvas> <img id="c1" src="c01.png" style="display:none" /> <img id="c2" src="c02.png" style="display:none" /> <img id="c3" src="c03.png" style="display:none" /> <img id="c4" src="c04.png" style="display:none" /> <img id="c5" src="c05.png" style="display:none" /> <img id="c6" src="c06.png" style="display:none" /> <img id="c7" src="c07.png" style="display:none" /> <img id="c8" src="c08.png" style="display:none" /> <img id="c9" src="c09.png" style="display:none" /> <img id="c10" src="c10.png" style="display:none" /> <img id="c11" src="c11.png" style="display:none" /> <img id="c12" src="c12.png" style="display:none" /> <img id="c13" src="c13.png" style="display:none" /> <img id="d1" src="d01.png" style="display:none" /> <img id="d2" src="d02.png" style="display:none" /> <img id="d3" src="d03.png" style="display:none" /> <img id="d4" src="d04.png" style="display:none" /> <img id="d5" src="d05.png" style="display:none" /> <img id="d6" src="d06.png" style="display:none" /> <img id="d7" src="d07.png" style="display:none" /> <img id="d8" src="d08.png" style="display:none" /> <img id="d9" src="d09.png" style="display:none" /> <img id="d10" src="d10.png" style="display:none" /> <img id="d11" src="d11.png" style="display:none" /> <img id="d12" src="d12.png" style="display:none" /> <img id="d13" src="d13.png" style="display:none" /> <img id="h1" src="h01.png" style="display:none" /> <img id="h2" src="h02.png" style="display:none" /> <img id="h3" src="h03.png" style="display:none" /> <img id="h4" src="h04.png" style="display:none" /> <img id="h5" src="h05.png" style="display:none" /> <img id="h6" src="h06.png" style="display:none" /> <img id="h7" src="h07.png" style="display:none" /> <img id="h8" src="h08.png" style="display:none" /> <img id="h9" src="h09.png" style="display:none" /> <img id="h10" src="h10.png" style="display:none" /> <img id="h11" src="h11.png" style="display:none" /> <img id="h12" src="h12.png" style="display:none" /> <img id="h13" src="h13.png" style="display:none" /> <img id="s1" src="s01.png" style="display:none" /> <img id="s2" src="s02.png" style="display:none" /> 8

<img id="s3" src="s03.png" style="display:none" /> <img id="s4" src="s04.png" style="display:none" /> <img id="s5" src="s05.png" style="display:none" /> <img id="s6" src="s06.png" style="display:none" /> <img id="s7" src="s07.png" style="display:none" /> <img id="s8" src="s08.png" style="display:none" /> <img id="s9" src="s09.png" style="display:none" /> <img id="s10" src="s10.png" style="display:none" /> <img id="s11" src="s11.png" style="display:none" /> <img id="s12" src="s12.png" style="display:none" /> <img id="s13" src="s13.png" style="display:none" /> <img id="z1" src="z01.png" style="display:none" /> </body> </html> card_initialize() <html> <head> <script> var ctx; var carddeck = []; function Card(suit, rank, image, backimage) { this.suit = suit; this.rank = rank; this.image = image; 9

this.backimage = backimage; function drawcard(card, x, y, flag) { if (flag == true) { ctx.drawimage(card.image, 0, 0, 200,300, x, y, 71, 96); else { ctx.drawimage(card.backimage, 0, 0, 200,300, x, y, 71, 96); function cardset() { var backimage = document.getelementbyid("z1"); carddeck = []; for (var s = 0; s < 4; s++) { for (var r = 0; r < 13; r++) { var name = ""; switch (s) { case 0: name = "c"; break; case 1: name = "d"; break; case 2: name = "h"; break; case 3: name = "s"; break; name = name + (r + 1); var image = document.getelementbyid(name); var card = new Card(s, r, image, backimage); carddeck.push(card); function cardinitialize() { i = carddeck.length while (i > 0) { var s = Math.floor(Math.random() * i); var temp = carddeck[--i] carddeck[i] = carddeck[s] carddeck[s] = temp function init() { var canvas = document.getelementbyid("canvas"); 10

ctx = canvas.getcontext("2d"); cardset(); cardinitialize(); drawcard(carddeck[0], 100, 100, true); drawcard(carddeck[50], 200, 100, true); </script> </head> <body onload="init()"> <canvas id="canvas" width="1000" height="600"></canvas> <img id="c1" src="c01.png" style="display:none" /> <img id="c2" src="c02.png" style="display:none" /> <img id="c3" src="c03.png" style="display:none" /> <img id="c4" src="c04.png" style="display:none" /> <img id="c5" src="c05.png" style="display:none" /> <img id="c6" src="c06.png" style="display:none" /> <img id="c7" src="c07.png" style="display:none" /> <img id="c8" src="c08.png" style="display:none" /> <img id="c9" src="c09.png" style="display:none" /> <img id="c10" src="c10.png" style="display:none" /> <img id="c11" src="c11.png" style="display:none" /> <img id="c12" src="c12.png" style="display:none" /> <img id="c13" src="c13.png" style="display:none" /> <img id="d1" src="d01.png" style="display:none" /> <img id="d2" src="d02.png" style="display:none" /> <img id="d3" src="d03.png" style="display:none" /> <img id="d4" src="d04.png" style="display:none" /> <img id="d5" src="d05.png" style="display:none" /> <img id="d6" src="d06.png" style="display:none" /> <img id="d7" src="d07.png" style="display:none" /> <img id="d8" src="d08.png" style="display:none" /> <img id="d9" src="d09.png" style="display:none" /> <img id="d10" src="d10.png" style="display:none" /> <img id="d11" src="d11.png" style="display:none" /> <img id="d12" src="d12.png" style="display:none" /> <img id="d13" src="d13.png" style="display:none" /> <img id="h1" src="h01.png" style="display:none" /> <img id="h2" src="h02.png" style="display:none" /> <img id="h3" src="h03.png" style="display:none" /> <img id="h4" src="h04.png" style="display:none" /> <img id="h5" src="h05.png" style="display:none" /> <img id="h6" src="h06.png" style="display:none" /> <img id="h7" src="h07.png" style="display:none" /> 11

<img id="h8" src="h08.png" style="display:none" /> <img id="h9" src="h09.png" style="display:none" /> <img id="h10" src="h10.png" style="display:none" /> <img id="h11" src="h11.png" style="display:none" /> <img id="h12" src="h12.png" style="display:none" /> <img id="h13" src="h13.png" style="display:none" /> <img id="s1" src="s01.png" style="display:none" /> <img id="s2" src="s02.png" style="display:none" /> <img id="s3" src="s03.png" style="display:none" /> <img id="s4" src="s04.png" style="display:none" /> <img id="s5" src="s05.png" style="display:none" /> <img id="s6" src="s06.png" style="display:none" /> <img id="s7" src="s07.png" style="display:none" /> <img id="s8" src="s08.png" style="display:none" /> <img id="s9" src="s09.png" style="display:none" /> <img id="s10" src="s10.png" style="display:none" /> <img id="s11" src="s11.png" style="display:none" /> <img id="s12" src="s12.png" style="display:none" /> <img id="s13" src="s13.png" style="display:none" /> <img id="z1" src="z01.png" style="display:none" /> </body> </html> gameinitialize() <html> 12

<head> <script> var ctx; var carddeck = []; var comhand = []; var userhand = []; var Yama = []; var getcom = []; var getuser = []; var dispcom = []; var gameoverp = false; var complayp = false; var trump = 0; function Card(suit, rank, image, backimage) { this.suit = suit; this.rank = rank; this.image = image; this.backimage = backimage; function drawcard(card, x, y, flag) { if (flag == true) { ctx.drawimage(card.image, 0, 0, 200,300, x, y, 71, 96); else { ctx.drawimage(card.backimage, 0, 0, 200,300, x, y, 71, 96); function cardset() { var backimage = document.getelementbyid("z1"); carddeck = []; for (var s = 0; s < 4; s++) { for (var r = 0; r < 13; r++) { var name = ""; switch (s) { case 0: name = "c"; break; case 1: name = "d"; break; case 2: name = "h"; break; case 3: name = "s"; break; name = name + (r + 1); var image = document.getelementbyid(name); 13

var card = new Card(s, r, image, backimage); carddeck.push(card); function cardinitialize() { i = carddeck.length while (i > 0) { var s = Math.floor(Math.random() * i); var temp = carddeck[--i] carddeck[i] = carddeck[s] carddeck[s] = temp function gameinitialize() { comhand = [] userhand = [] Yama = [] cardinitialize() var index = 0 for (var i = 0; i < 13; i++) { comhand.push(carddeck[index]); index++; for (var i = 0; i < 13; i++) { userhand.push(carddeck[index]); index++; for (var i = 0; i < 26; i++) { Yama.push(carddeck[index]); index++; getcom = []; getuser = []; dispcom = []; gameoverp = false; complayp = false; trump = Yama[Yama.length-1].suit; 14

function init() { var canvas = document.getelementbyid("canvas"); ctx = canvas.getcontext("2d"); cardset(); gameinitialize(); drawcard(comhand[0], 100, 100, true); drawcard(userhand[5], 200, 100, true); drawcard(yama[25], 300, 100, false); </script> </head> <body onload="init()"> <canvas id="canvas" width="1000" height="600"></canvas> <img id="c1" src="c01.png" style="display:none" /> <img id="c2" src="c02.png" style="display:none" /> <img id="c3" src="c03.png" style="display:none" /> <img id="c4" src="c04.png" style="display:none" /> <img id="c5" src="c05.png" style="display:none" /> <img id="c6" src="c06.png" style="display:none" /> <img id="c7" src="c07.png" style="display:none" /> <img id="c8" src="c08.png" style="display:none" /> <img id="c9" src="c09.png" style="display:none" /> <img id="c10" src="c10.png" style="display:none" /> <img id="c11" src="c11.png" style="display:none" /> <img id="c12" src="c12.png" style="display:none" /> <img id="c13" src="c13.png" style="display:none" /> <img id="d1" src="d01.png" style="display:none" /> <img id="d2" src="d02.png" style="display:none" /> <img id="d3" src="d03.png" style="display:none" /> <img id="d4" src="d04.png" style="display:none" /> <img id="d5" src="d05.png" style="display:none" /> <img id="d6" src="d06.png" style="display:none" /> <img id="d7" src="d07.png" style="display:none" /> <img id="d8" src="d08.png" style="display:none" /> <img id="d9" src="d09.png" style="display:none" /> <img id="d10" src="d10.png" style="display:none" /> <img id="d11" src="d11.png" style="display:none" /> <img id="d12" src="d12.png" style="display:none" /> <img id="d13" src="d13.png" style="display:none" /> <img id="h1" src="h01.png" style="display:none" /> <img id="h2" src="h02.png" style="display:none" /> <img id="h3" src="h03.png" style="display:none" /> <img id="h4" src="h04.png" style="display:none" /> 15

<img id="h5" src="h05.png" style="display:none" /> <img id="h6" src="h06.png" style="display:none" /> <img id="h7" src="h07.png" style="display:none" /> <img id="h8" src="h08.png" style="display:none" /> <img id="h9" src="h09.png" style="display:none" /> <img id="h10" src="h10.png" style="display:none" /> <img id="h11" src="h11.png" style="display:none" /> <img id="h12" src="h12.png" style="display:none" /> <img id="h13" src="h13.png" style="display:none" /> <img id="s1" src="s01.png" style="display:none" /> <img id="s2" src="s02.png" style="display:none" /> <img id="s3" src="s03.png" style="display:none" /> <img id="s4" src="s04.png" style="display:none" /> <img id="s5" src="s05.png" style="display:none" /> <img id="s6" src="s06.png" style="display:none" /> <img id="s7" src="s07.png" style="display:none" /> <img id="s8" src="s08.png" style="display:none" /> <img id="s9" src="s09.png" style="display:none" /> <img id="s10" src="s10.png" style="display:none" /> <img id="s11" src="s11.png" style="display:none" /> <img id="s12" src="s12.png" style="display:none" /> <img id="s13" src="s13.png" style="display:none" /> <img id="z1" src="z01.png" style="display:none" /> </body> </html> 16

ShowBan() <html> <head> <script> var ctx; var carddeck = []; var comhand = []; var userhand = []; var Yama = []; var getcom = []; var getuser = []; var dispcom = []; var gameoverp = false; var complayp = false; var trump = 0; function Card(suit, rank, image, backimage) { this.suit = suit; this.rank = rank; this.image = image; this.backimage = backimage; function drawcard(card, x, y, flag) { if (flag == true) { ctx.drawimage(card.image, 0, 0, 200,300, x, y, 71, 96); else { ctx.drawimage(card.backimage, 0, 0, 200,300, x, y, 71, 96); ctx.strokestyle = "blue"; ctx.linewidth = 1; ctx.strokerect(x, y, 71, 96); function cardset() { var backimage = document.getelementbyid("z1"); carddeck = []; for (var s = 0; s < 4; s++) { for (var r = 0; r < 13; r++) { var name = ""; switch (s) { case 0: name = "c"; break; 17

case 1: name = "d"; break; case 2: name = "h"; break; case 3: name = "s"; break; name = name + (r + 1); var image = document.getelementbyid(name); var card = new Card(s, r, image, backimage); carddeck.push(card); function cardinitialize() { i = carddeck.length while (i > 0) { var s = Math.floor(Math.random() * i); var temp = carddeck[--i] carddeck[i] = carddeck[s] carddeck[s] = temp function gameinitialize() { comhand = [] userhand = [] Yama = [] cardinitialize() var index = 0 for (var i = 0; i < 13; i++) { comhand.push(carddeck[index]); index++; for (var i = 0; i < 13; i++) { userhand.push(carddeck[index]); index++; for (var i = 0; i < 26; i++) { Yama.push(carddeck[index]); index++; getcom = []; getuser = []; 18

dispcom = []; gameoverp = false; complayp = false; trump = Yama[Yama.length-1].suit; function ShowBan() { ctx.clearrect(0, 0, 1000, 600); var pos = 10; for (var i = 0; i < comhand.length; i++) { drawcard(comhand[i], pos, 10, false); pos += 72; pos = 10; for (var i = 0; i < getcom.length; i++) { drawcard(getcom[i], pos, 110, true); pos += 20; pos = 10; if (Yama.length > 0) { drawcard(yama[yama.length-1], pos, 210, true); // pos = 145; pos = 245; if (dispcom.length > 0) { drawcard(dispcom[0], pos, 210, true); pos = 10; for (var i = 0; i < getuser.length; i++) { drawcard(getuser[i], pos, 310, true); pos += 20; pos = 10; for (var i = 0; i < userhand.length; i++) { drawcard(userhand[i], pos, 410, true); pos += 72; ctx.font = "24px Times New Roman "; ctx.strokestyle = "blue"; ctx.fillstyle = "blue"; if (gameoverp == false) { ctx.filltext(" ", 400, 265); else { 19

var comvalue = getcom.length / 2; var uservalue = getuser.length / 2; var drawstring = "Game Over "; drawstring += uservalue; drawstring += " : "; drawstring += comvalue; if (comvalue > uservalue) { drawstring += " "; ctx.stroketext(drawstring, 200, 265); else if (comvalue < uservalue) { drawstring += " "; ctx.stroketext(drawstring,200, 265); else { drawstring += " "; ctx.stroketext(drawstring, 200, 265); function init() { var canvas = document.getelementbyid("canvas"); ctx = canvas.getcontext("2d"); cardset(); gameinitialize(); ShowBan(); </script> </head> <body onload="init()"> <canvas id="canvas" width="1000" height="600"></canvas> <img id="c1" src="c01.png" style="display:none" /> <img id="c2" src="c02.png" style="display:none" /> <img id="c3" src="c03.png" style="display:none" /> <img id="c4" src="c04.png" style="display:none" /> <img id="c5" src="c05.png" style="display:none" /> <img id="c6" src="c06.png" style="display:none" /> <img id="c7" src="c07.png" style="display:none" /> <img id="c8" src="c08.png" style="display:none" /> <img id="c9" src="c09.png" style="display:none" /> <img id="c10" src="c10.png" style="display:none" /> <img id="c11" src="c11.png" style="display:none" /> <img id="c12" src="c12.png" style="display:none" /> <img id="c13" src="c13.png" style="display:none" /> 20

<img id="d1" src="d01.png" style="display:none" /> <img id="d2" src="d02.png" style="display:none" /> <img id="d3" src="d03.png" style="display:none" /> <img id="d4" src="d04.png" style="display:none" /> <img id="d5" src="d05.png" style="display:none" /> <img id="d6" src="d06.png" style="display:none" /> <img id="d7" src="d07.png" style="display:none" /> <img id="d8" src="d08.png" style="display:none" /> <img id="d9" src="d09.png" style="display:none" /> <img id="d10" src="d10.png" style="display:none" /> <img id="d11" src="d11.png" style="display:none" /> <img id="d12" src="d12.png" style="display:none" /> <img id="d13" src="d13.png" style="display:none" /> <img id="h1" src="h01.png" style="display:none" /> <img id="h2" src="h02.png" style="display:none" /> <img id="h3" src="h03.png" style="display:none" /> <img id="h4" src="h04.png" style="display:none" /> <img id="h5" src="h05.png" style="display:none" /> <img id="h6" src="h06.png" style="display:none" /> <img id="h7" src="h07.png" style="display:none" /> <img id="h8" src="h08.png" style="display:none" /> <img id="h9" src="h09.png" style="display:none" /> <img id="h10" src="h10.png" style="display:none" /> <img id="h11" src="h11.png" style="display:none" /> <img id="h12" src="h12.png" style="display:none" /> <img id="h13" src="h13.png" style="display:none" /> <img id="s1" src="s01.png" style="display:none" /> <img id="s2" src="s02.png" style="display:none" /> <img id="s3" src="s03.png" style="display:none" /> <img id="s4" src="s04.png" style="display:none" /> <img id="s5" src="s05.png" style="display:none" /> <img id="s6" src="s06.png" style="display:none" /> <img id="s7" src="s07.png" style="display:none" /> <img id="s8" src="s08.png" style="display:none" /> <img id="s9" src="s09.png" style="display:none" /> <img id="s10" src="s10.png" style="display:none" /> <img id="s11" src="s11.png" style="display:none" /> <img id="s12" src="s12.png" style="display:none" /> <img id="s13" src="s13.png" style="display:none" /> <img id="z1" src="z01.png" style="display:none" /> </body> </html> 21

drawcard() function drawcard(card, x, y, flag) { if (flag == true) { ctx.drawimage(card.image, 0, 0, 200,300, x, y, 71, 96); else { ctx.drawimage(card.backimage, 0, 0, 200,300, x, y, 71, 96); ctx.strokestyle = "blue"; ctx.linewidth = 1; ctx.strokerect(x, y, 71, 96); buttonpress(event) mousepress() <html> <head> <script> var ctx; var carddeck = []; 22

var comhand = []; var userhand = []; var Yama = []; var getcom = []; var getuser = []; var dispcom = []; var gameoverp = false; var complayp = false; var trump = 0; function Card(suit, rank, image, backimage) { this.suit = suit; this.rank = rank; this.image = image; this.backimage = backimage; function drawcard(card, x, y, flag) { if (flag == true) { ctx.drawimage(card.image, 0, 0, 200,300, x, y, 71, 96); else { ctx.drawimage(card.backimage, 0, 0, 200,300, x, y, 71, 96); ctx.strokestyle = "blue"; ctx.linewidth = 1; ctx.strokerect(x, y, 71, 96); function cardset() { var backimage = document.getelementbyid("z1"); carddeck = []; for (var s = 0; s < 4; s++) { for (var r = 0; r < 13; r++) { var name = ""; switch (s) { case 0: name = "c"; break; case 1: name = "d"; break; case 2: name = "h"; break; case 3: name = "s"; break; name = name + (r + 1); var image = document.getelementbyid(name); var card = new Card(s, r, image, backimage); 23

carddeck.push(card); function cardinitialize() { i = carddeck.length while (i > 0) { var s = Math.floor(Math.random() * i); var temp = carddeck[--i] carddeck[i] = carddeck[s] carddeck[s] = temp function gameinitialize() { comhand = [] userhand = [] Yama = [] cardinitialize() var index = 0 for (var i = 0; i < 13; i++) { comhand.push(carddeck[index]); index++; for (var i = 0; i < 13; i++) { userhand.push(carddeck[index]); index++; for (var i = 0; i < 26; i++) { Yama.push(carddeck[index]); index++; getcom = []; getuser = []; dispcom = []; gameoverp = false; complayp = false; trump = Yama[Yama.length-1].suit; function ShowBan() { 24

ctx.clearrect(0, 0, 1000, 600); var pos = 10; for (var i = 0; i < comhand.length; i++) { drawcard(comhand[i], pos, 10, false); pos += 72; pos = 10; for (var i = 0; i < getcom.length; i++) { drawcard(getcom[i], pos, 110, true); pos += 20; pos = 10; if (Yama.length > 0) { drawcard(yama[yama.length-1], pos, 210, true); // pos = 145; pos = 245; if (dispcom.length > 0) { drawcard(dispcom[0], pos, 210, true); pos = 10; for (var i = 0; i < getuser.length; i++) { drawcard(getuser[i], pos, 310, true); pos += 20; pos = 10; for (var i = 0; i < userhand.length; i++) { drawcard(userhand[i], pos, 410, true); pos += 72; ctx.font = "24px Times New Roman "; ctx.strokestyle = "blue"; ctx.fillstyle = "blue"; if (gameoverp == false) { ctx.filltext(" ", 400, 265); else { var comvalue = getcom.length / 2; var uservalue = getuser.length / 2; var drawstring = "Game Over "; drawstring += uservalue; drawstring += " : "; drawstring += comvalue; if (comvalue > uservalue) { 25

drawstring += " "; ctx.stroketext(drawstring, 200, 265); else if (comvalue < uservalue) { drawstring += " "; ctx.stroketext(drawstring,200, 265); else { drawstring += " "; ctx.stroketext(drawstring, 200, 265); function mousepress(event) { var mx = event.offsetx; var my = event.offsety; var userindex = -1; var pos = 10; for (var i = 0; i< userhand.length; i++) { if (mx>pos && mx<pos+72 && my>410 && my<510) { userindex = i; break; pos += 72; if (userindex < 0) { return; if (complayp == false) { var suit = userhand[userindex].suit; var rank = userhand[userindex].rank; var comindex = -1; for (var i = 0; i < comhand.length; i++) { if (comhand[i].suit == suit) { comindex = i; break; if (comindex < 0) { for (var i = 0; i < comhand.length; i++) { if (comhand[i].suit == trump) { comindex = i; break; 26

if (comindex < 0) { comindex = Math.floor(Math.random() * comhand.length); if (comhand[comindex].suit == userhand[userindex].suit) { if (comhand[comindex].rank == 0) { getcom.push(userhand[userindex]); getcom.push(comhand[comindex]); complayp = true; else if (userhand[userindex].rank == 0) { getuser.push(userhand[userindex]); getuser.push(comhand[comindex]); complayp = false; else if (comhand[comindex].rank > userhand[userindex].rank) { getcom.push(userhand[userindex]); getcom.push(comhand[comindex]); complayp = true; else { getuser.push(userhand[userindex]); getuser.push(comhand[comindex]); complayp = false; else if (comhand[comindex].suit == trump) { getcom.push(userhand[userindex]); getcom.push(comhand[comindex]); complayp = true; else if (userhand[userindex].suit == trump) { getuser.push(userhand[userindex]); getuser.push(comhand[comindex]); complayp = false; else { getuser.push(userhand[userindex]); getuser.push(comhand[comindex]); complayp = false; userhand.splice(userindex, 1); comhand.splice(comindex, 1); else { // var suit = userhand[userindex].suit; var rank = userhand[userindex].rank; if (suit!= dispcom[0].suit) { flag = false; 27

for (var i = 0; i < userhand.length; i++) { if (userhand[i].suit == dispcom[0].suit) { flag = true; break; if (flag == true) { var s =" "; if (dispcom[0].suit == 0) { s += " "; else if (dispcom[0].suit == 1) { s += " "; else if (dispcom[0].suit == 2) { s += " "; else { s += " "; s += " "; ctx.font = "24px Times New Roman "; ctx.fillstyle = "red"; ctx.filltext(s, 400, 365); return; if (dispcom[0].suit == userhand[userindex].suit) { if (dispcom[0].rank == 0) { getcom.push(userhand[userindex]); getcom.push(dispcom[0]); complayp = true; else if (userhand[userindex].rank == 0) { getuser.push(userhand[userindex]); getuser.push(dispcom[0]); complayp = false; else if (dispcom[0].rank > userhand[userindex].rank) { getcom.push(userhand[userindex]); getcom.push(dispcom[0]); complayp = true; else { getuser.push(userhand[userindex]); getuser.push(dispcom[0]); complayp = false; else if (dispcom[0].suit == trump) { 28

getcom.push(userhand[userindex]); getcom.push(dispcom[0]); complayp = true; else if (userhand[userindex].suit == trump) { getuser.push(userhand[userindex]); getuser.push(dispcom[0]); complayp = false; else { getcom.push(userhand[userindex]); getcom.push(dispcom[0]); complayp = true; userhand.splice(userindex, 1); if (Yama.length > 0) { if (complayp == true) { // comhand.push(yama[yama.length-1]); Yama.splice(Yama.length-1, 1); userhand.push(yama[yama.length-1]); Yama.splice(Yama.length-1, 1); else { // userhand.push(yama[yama.length-1]); Yama.splice(Yama.length-1, 1); comhand.push(yama[yama.length-1]); Yama.splice(Yama.length-1, 1); if (comhand.length == 0) { gameoverp = true; dispcom = []; else if (complayp == true) { // var comindex = Math.floor(Math.random() * comhand.length); dispcom = [comhand[comindex]]; comhand.splice(comindex, 1); else { // dispcom = []; ShowBan(); function init() { var canvas = document.getelementbyid("canvas"); 29

ctx = canvas.getcontext("2d"); canvas.onmousedown = mousepress; cardset(); gameinitialize(); ShowBan(); </script> </head> <body onload="init()"> <canvas id="canvas" width="1000" height="600"></canvas> <img id="c1" src="c01.png" style="display:none" /> <img id="c2" src="c02.png" style="display:none" /> <img id="c3" src="c03.png" style="display:none" /> <img id="c4" src="c04.png" style="display:none" /> <img id="c5" src="c05.png" style="display:none" /> <img id="c6" src="c06.png" style="display:none" /> <img id="c7" src="c07.png" style="display:none" /> <img id="c8" src="c08.png" style="display:none" /> <img id="c9" src="c09.png" style="display:none" /> <img id="c10" src="c10.png" style="display:none" /> <img id="c11" src="c11.png" style="display:none" /> <img id="c12" src="c12.png" style="display:none" /> <img id="c13" src="c13.png" style="display:none" /> <img id="d1" src="d01.png" style="display:none" /> <img id="d2" src="d02.png" style="display:none" /> <img id="d3" src="d03.png" style="display:none" /> <img id="d4" src="d04.png" style="display:none" /> <img id="d5" src="d05.png" style="display:none" /> <img id="d6" src="d06.png" style="display:none" /> <img id="d7" src="d07.png" style="display:none" /> <img id="d8" src="d08.png" style="display:none" /> <img id="d9" src="d09.png" style="display:none" /> <img id="d10" src="d10.png" style="display:none" /> <img id="d11" src="d11.png" style="display:none" /> <img id="d12" src="d12.png" style="display:none" /> <img id="d13" src="d13.png" style="display:none" /> <img id="h1" src="h01.png" style="display:none" /> <img id="h2" src="h02.png" style="display:none" /> <img id="h3" src="h03.png" style="display:none" /> <img id="h4" src="h04.png" style="display:none" /> <img id="h5" src="h05.png" style="display:none" /> <img id="h6" src="h06.png" style="display:none" /> <img id="h7" src="h07.png" style="display:none" /> 30

<img id="h8" src="h08.png" style="display:none" /> <img id="h9" src="h09.png" style="display:none" /> <img id="h10" src="h10.png" style="display:none" /> <img id="h11" src="h11.png" style="display:none" /> <img id="h12" src="h12.png" style="display:none" /> <img id="h13" src="h13.png" style="display:none" /> <img id="s1" src="s01.png" style="display:none" /> <img id="s2" src="s02.png" style="display:none" /> <img id="s3" src="s03.png" style="display:none" /> <img id="s4" src="s04.png" style="display:none" /> <img id="s5" src="s05.png" style="display:none" /> <img id="s6" src="s06.png" style="display:none" /> <img id="s7" src="s07.png" style="display:none" /> <img id="s8" src="s08.png" style="display:none" /> <img id="s9" src="s09.png" style="display:none" /> <img id="s10" src="s10.png" style="display:none" /> <img id="s11" src="s11.png" style="display:none" /> <img id="s12" src="s12.png" style="display:none" /> <img id="s13" src="s13.png" style="display:none" /> <img id="z1" src="z01.png" style="display:none" /> </body> </html> 31

gamestart() <html> <head> <script> var ctx; var carddeck = []; var comhand = []; var userhand = []; var Yama = []; var getcom = []; var getuser = []; var dispcom = []; var gameoverp = false; var complayp = false; var trump = 0; function Card(suit, rank, image, backimage) { this.suit = suit; this.rank = rank; this.image = image; this.backimage = backimage; 32

function drawcard(card, x, y, flag) { if (flag == true) { ctx.drawimage(card.image, 0, 0, 200,300, x, y, 71, 96); else { ctx.drawimage(card.backimage, 0, 0, 200,300, x, y, 71, 96); ctx.strokestyle = "blue"; ctx.linewidth = 1; ctx.strokerect(x, y, 71, 96); function cardset() { var backimage = document.getelementbyid("z1"); carddeck = []; for (var s = 0; s < 4; s++) { for (var r = 0; r < 13; r++) { var name = ""; switch (s) { case 0: name = "c"; break; case 1: name = "d"; break; case 2: name = "h"; break; case 3: name = "s"; break; name = name + (r + 1); var image = document.getelementbyid(name); var card = new Card(s, r, image, backimage); carddeck.push(card); function cardinitialize() { i = carddeck.length while (i > 0) { var s = Math.floor(Math.random() * i); var temp = carddeck[--i] carddeck[i] = carddeck[s] carddeck[s] = temp 33

function gameinitialize() { comhand = [] userhand = [] Yama = [] cardinitialize() var index = 0 for (var i = 0; i < 13; i++) { comhand.push(carddeck[index]); index++; for (var i = 0; i < 13; i++) { userhand.push(carddeck[index]); index++; for (var i = 0; i < 26; i++) { Yama.push(carddeck[index]); index++; getcom = []; getuser = []; dispcom = []; gameoverp = false; complayp = false; trump = Yama[Yama.length-1].suit; function ShowBan() { ctx.clearrect(0, 0, 1000, 600); var pos = 10; for (var i = 0; i < comhand.length; i++) { drawcard(comhand[i], pos, 10, false); pos += 72; pos = 10; for (var i = 0; i < getcom.length; i++) { drawcard(getcom[i], pos, 110, true); pos += 20; pos = 10; if (Yama.length > 0) { drawcard(yama[yama.length-1], pos, 210, true); 34

// pos = 145; pos = 245; if (dispcom.length > 0) { drawcard(dispcom[0], pos, 210, true); pos = 10; for (var i = 0; i < getuser.length; i++) { drawcard(getuser[i], pos, 310, true); pos += 20; pos = 10; for (var i = 0; i < userhand.length; i++) { drawcard(userhand[i], pos, 410, true); pos += 72; ctx.font = "24px Times New Roman "; ctx.strokestyle = "blue"; ctx.fillstyle = "blue"; if (gameoverp == false) { ctx.filltext(" ", 400, 265); else { var comvalue = getcom.length / 2; var uservalue = getuser.length / 2; var drawstring = "Game Over "; drawstring += uservalue; drawstring += " : "; drawstring += comvalue; if (comvalue > uservalue) { drawstring += " "; ctx.stroketext(drawstring, 200, 265); else if (comvalue < uservalue) { drawstring += " "; ctx.stroketext(drawstring,200, 265); else { drawstring += " "; ctx.stroketext(drawstring, 200, 265); function mousepress(event) { var mx = event.offsetx; var my = event.offsety; 35

var userindex = -1; var pos = 10; for (var i = 0; i< userhand.length; i++) { if (mx>pos && mx<pos+72 && my>410 && my<510) { userindex = i; break; pos += 72; if (userindex < 0) { return; if (complayp == false) { var suit = userhand[userindex].suit; var rank = userhand[userindex].rank; var comindex = -1; for (var i = 0; i < comhand.length; i++) { if (comhand[i].suit == suit) { comindex = i; break; if (comindex < 0) { for (var i = 0; i < comhand.length; i++) { if (comhand[i].suit == trump) { comindex = i; break; if (comindex < 0) { comindex = Math.floor(Math.random() * comhand.length); if (comhand[comindex].suit == userhand[userindex].suit) { if (comhand[comindex].rank == 0) { getcom.push(userhand[userindex]); getcom.push(comhand[comindex]); complayp = true; else if (userhand[userindex].rank == 0) { getuser.push(userhand[userindex]); getuser.push(comhand[comindex]); complayp = false; else if (comhand[comindex].rank > userhand[userindex].rank) { 36

getcom.push(userhand[userindex]); getcom.push(comhand[comindex]); complayp = true; else { getuser.push(userhand[userindex]); getuser.push(comhand[comindex]); complayp = false; else if (comhand[comindex].suit == trump) { getcom.push(userhand[userindex]); getcom.push(comhand[comindex]); complayp = true; else if (userhand[userindex].suit == trump) { getuser.push(userhand[userindex]); getuser.push(comhand[comindex]); complayp = false; else { getuser.push(userhand[userindex]); getuser.push(comhand[comindex]); complayp = false; userhand.splice(userindex, 1); comhand.splice(comindex, 1); else { // var suit = userhand[userindex].suit; var rank = userhand[userindex].rank; if (suit!= dispcom[0].suit) { flag = false; for (var i = 0; i < userhand.length; i++) { if (userhand[i].suit == dispcom[0].suit) { flag = true; break; if (flag == true) { var s =" "; if (dispcom[0].suit == 0) { s += " "; else if (dispcom[0].suit == 1) { s += " "; else if (dispcom[0].suit == 2) { s += " "; else { 37

s += " "; s += " "; ctx.font = "24px Times New Roman "; ctx.fillstyle = "red"; ctx.filltext(s, 400, 365); return; if (dispcom[0].suit == userhand[userindex].suit) { if (dispcom[0].rank == 0) { getcom.push(userhand[userindex]); getcom.push(dispcom[0]); complayp = true; else if (userhand[userindex].rank == 0) { getuser.push(userhand[userindex]); getuser.push(dispcom[0]); complayp = false; else if (dispcom[0].rank > userhand[userindex].rank) { getcom.push(userhand[userindex]); getcom.push(dispcom[0]); complayp = true; else { getuser.push(userhand[userindex]); getuser.push(dispcom[0]); complayp = false; else if (dispcom[0].suit == trump) { getcom.push(userhand[userindex]); getcom.push(dispcom[0]); complayp = true; else if (userhand[userindex].suit == trump) { getuser.push(userhand[userindex]); getuser.push(dispcom[0]); complayp = false; else { getcom.push(userhand[userindex]); getcom.push(dispcom[0]); complayp = true; userhand.splice(userindex, 1); if (Yama.length > 0) { 38

if (complayp == true) { // comhand.push(yama[yama.length-1]); Yama.splice(Yama.length-1, 1); userhand.push(yama[yama.length-1]); Yama.splice(Yama.length-1, 1); else { // userhand.push(yama[yama.length-1]); Yama.splice(Yama.length-1, 1); comhand.push(yama[yama.length-1]); Yama.splice(Yama.length-1, 1); if (comhand.length == 0) { gameoverp = true; dispcom = []; else if (complayp == true) { // var comindex = Math.floor(Math.random() * comhand.length); dispcom = [comhand[comindex]]; comhand.splice(comindex, 1); else { // dispcom = []; ShowBan(); function init() { var canvas = document.getelementbyid("canvas"); ctx = canvas.getcontext("2d"); canvas.onmousedown = mousepress; cardset(); gameinitialize(); ShowBan(); function gamestart() { cardset(); gameinitialize(); ShowBan(); </script> </head> <body onload="init()"> 39

<canvas id="canvas" width="1000" height="600"></canvas> <img id="c1" src="c01.png" style="display:none" /> <img id="c2" src="c02.png" style="display:none" /> <img id="c3" src="c03.png" style="display:none" /> <img id="c4" src="c04.png" style="display:none" /> <img id="c5" src="c05.png" style="display:none" /> <img id="c6" src="c06.png" style="display:none" /> <img id="c7" src="c07.png" style="display:none" /> <img id="c8" src="c08.png" style="display:none" /> <img id="c9" src="c09.png" style="display:none" /> <img id="c10" src="c10.png" style="display:none" /> <img id="c11" src="c11.png" style="display:none" /> <img id="c12" src="c12.png" style="display:none" /> <img id="c13" src="c13.png" style="display:none" /> <img id="d1" src="d01.png" style="display:none" /> <img id="d2" src="d02.png" style="display:none" /> <img id="d3" src="d03.png" style="display:none" /> <img id="d4" src="d04.png" style="display:none" /> <img id="d5" src="d05.png" style="display:none" /> <img id="d6" src="d06.png" style="display:none" /> <img id="d7" src="d07.png" style="display:none" /> <img id="d8" src="d08.png" style="display:none" /> <img id="d9" src="d09.png" style="display:none" /> <img id="d10" src="d10.png" style="display:none" /> <img id="d11" src="d11.png" style="display:none" /> <img id="d12" src="d12.png" style="display:none" /> <img id="d13" src="d13.png" style="display:none" /> <img id="h1" src="h01.png" style="display:none" /> <img id="h2" src="h02.png" style="display:none" /> <img id="h3" src="h03.png" style="display:none" /> <img id="h4" src="h04.png" style="display:none" /> <img id="h5" src="h05.png" style="display:none" /> <img id="h6" src="h06.png" style="display:none" /> <img id="h7" src="h07.png" style="display:none" /> <img id="h8" src="h08.png" style="display:none" /> <img id="h9" src="h09.png" style="display:none" /> <img id="h10" src="h10.png" style="display:none" /> <img id="h11" src="h11.png" style="display:none" /> <img id="h12" src="h12.png" style="display:none" /> <img id="h13" src="h13.png" style="display:none" /> <img id="s1" src="s01.png" style="display:none" /> <img id="s2" src="s02.png" style="display:none" /> <img id="s3" src="s03.png" style="display:none" /> 40

<img id="s4" src="s04.png" style="display:none" /> <img id="s5" src="s05.png" style="display:none" /> <img id="s6" src="s06.png" style="display:none" /> <img id="s7" src="s07.png" style="display:none" /> <img id="s8" src="s08.png" style="display:none" /> <img id="s9" src="s09.png" style="display:none" /> <img id="s10" src="s10.png" style="display:none" /> <img id="s11" src="s11.png" style="display:none" /> <img id="s12" src="s12.png" style="display:none" /> <img id="s13" src="s13.png" style="display:none" /> <img id="z1" src="z01.png" style="display:none" /> <button onclick="gamestart()"> </buton> </body> </html> Python JavaScript 41