ケイジバン
ゼンタイ
ケイジバン
楽曲投稿スレ2
フブキ
2026/03/16 13:04
🍡【週刊TGPプレイリスト】3月第2週目 by フブキ 色々ありすぎて昨日出せなかった懺悔!!!! 🚃発メロ部門 ・gVP4Fe9tH8bJqBr7Jizc-BYtD8ZQPYum7G3YgebGq  「NR-KTST-029-00」E235系1000番台さん  朝の目覚めのような爽やかで明るい曲。  タイトルの付け方って何か法則があるんでしょうか…(無知) 🎶中尺BGM部門 ・gVP4Fe9tH8bJqBr7Jizc-ivza4Ooc2CF0sfIttdDD  「graves/Sad」絵落さん  短調ながら舞踏のようなかっこよさを含んだ良曲。  聞いた後の満足感もさすがです。 🎵短尺BGM部門 ・gVP4Fe9tH8bJqBr7Jizc-gYGEX2r2tcwc7UDZCEkm  「4851004511748096」 ねんねさん  ソングメーカー作品。  メロディーめちゃくちゃ良いのでいつか伴奏つきが聴けたらいいな。テレパシーで送ってください! 🎤カバー部門① ・gVP4Fe9tH8bJqBr7Jizc-yM9tKLv9mr9KSnJaIQSy  「僕らだけの鼓動を 歌ってみた」だいちさん  ぼくこどをだいち御兄様が歌ってくださいましたわー!  低音がイケボなのでぜひお聴きくださいまし!ギョ! 🌅僕らだけの部門(?) ・gVP4Fe9tH8bJqBr7Jizc-p91xQWSPXjLaO4kUgZtG  「僕らだけの黎明を」フブキ  遭難スレにMVがあります!!ぜひ!!  オフボーカルもあるのでBGMとしても聴けるよ~ 🎙️カバー部門② ・gVP4Fe9tH8bJqBr7Jizc-yM9tKLv9mr9KSnJaIQSy  「僕らだけの夏を/とまと/僕らだけの鼓動を」あとらすさん  三曲セットの大ボリューム!  ぼくなつめちゃくちゃ難しいやないかと思い知らされました。歌ってくれてありがとう! 🎛️ボカロカバー部門 ・gVP4Fe9tH8bJqBr7Jizc-IX0q55GZ8s3NLwQ5n0NP  「【カバー】僕らだけの黎明を feat.KAITO SP」レイヴンさん  早すぎる「僕らだけの黎明を」のKAITOカバー!  時折聞こえるビブラートが良いですね…! 🎼長尺BGM部門 ・gVP4Fe9tH8bJqBr7Jizc-y3XoUwGctDsypH0IpC4I  「BandLabSong (9)」なぎさん  「僕らだけのキセキを」のインストバージョン。  遭難スレにはMV付きの完成版が載っているのでぜひご覧ください! 🎸ギター部門 ・gVP4Fe9tH8bJqBr7Jizc-xxCNRQbT198qrpC7HoBY  「アコギ 弾いた」守護者さん  アコースティックの落ち着く音色!  繊細で綺麗な音の粒です。 ⛩️箏部門 ・gVP4Fe9tH8bJqBr7Jizc-BrpWYwLYF9EHZLLAfMV8  「さくら」サクラ🌸さん  サクラさんがさくらを弾いている…!!  箏の美しくも力強い音色が癖になりますね。 そして今週の最多コメント賞は… 🏆最多コメント賞 ・gVP4Fe9tH8bJqBr7Jizc-oduQLjYmrofavvHeVfyQ  「星彩な永光と」にゃありいさん  THEにゃありいを感じられる圧倒的な電子の世界!!  予測不能のメロディーは星彩な物語を紡いでゆく。 今週分の更新はまとられないので最後かな? ありがとうございました!!
サーベイ
ケイジバン
新規調査提案/調査相談
うんえい2号
2025/12/22 10:07
2号が実装するときに多分修正させてもらおうと思ってることを先に書いておきますね。その2 【1つの設問では1つのことを聞きます】 1. なぜ「1つの設問では1つのこと」なのか  同じ設問の中で「評価(いいと思うか)」「期待(続いてほしいか)」「影響(困るか)」など複数の要素が混ざると…  ・回答者が何を基準に「はい/いいえ」を選べばいいか迷いやすい  ・仮説検証のときに「肯定的=何が肯定的なのか」が特定できず、分析しづらい  という問題が出てきます。 2.今回の設問「ゼミつくが閉鎖することについて肯定的な意見をもっていますか?」について  見た感じ、「1つの設問」になっていますが、  1.閉鎖を「歓迎」しているのか?  2.閉鎖が「仕方ない」と思っているのか?  3.閉鎖による「影響(困る・困らない)」は?  …と、回答者の頭の中でいろいろな考えが混ざる設問です。  「肯定的」という言葉の受け取り方も人によってバラバラです。答えるときに困る人も出てくると思います。  ここで、要素を分解してそれぞれについて分けて聞くことにすれば、回答者は答えやすいし、答えも分析もしやすくなります。  1.「今後もゼミつくを使い続けたいと思いますか?」  ・5段階評価(1=まったくそう思わない~5=ぜひ使い続けたい)→ここはAさんが考えてくれた他の設問と揃えます。  2.「ゼミつくが閉鎖されたら、どのくらい困ると思いますか?」  ・5段階評価(1=まったく困らない~5=非常に困る)  たとえばこのように2つに設問を分けると、  ・「どれくらい続けてほしいと思っているか」  ・「閉鎖したときの不便さをどう感じているか」  を分けて調べることができるので、「利用継続への意欲」と「閉鎖による困難度」を明確に分析できるようになります。  他の分け方があったら教えてください。 これって結構難しい(2号もいろいろ面倒だなーと思って特にお楽しみ系のサーベイではあいまいな設問をスルーしてることも多い)けど、今後、探究活動をバリバリやる人は、調査する前に知っておいて欲しいテクニックです。 ここがはっきりしていると、後の分析がとってもやりやすくなるよ。 いつか参考にしてくれると嬉しいです。
タイピング
ケイジバン
プログラミング
ケイジバン
みんなのコード保管庫
うんえい2号
2025/03/12 17:11
let question="この国の名称は?(通称)  全29問"; let input; let cfx=100;//国旗の起点のx座標 ("C"ountry "F"lag "X" の略) let cfy=50;//国旗の起点のy座標 ("C"ountry "F"lag "Y" の略) let seikai=0; let toi=0; let answer; let waiting=0; let center=550/2; let code=["Fra","Ger","Pol","Rus","Rom","Lit","Est","Lat","Bul","Hun","Mon","Ukr","Cze","Fin","Swe","Den","Nor","Ice","Slo","Gre","Ita","Aus","Ile","Swi","Neth","Lux","Bel","GBr","NMa"]; function setup() { createCanvas(550, 400); noStroke(); background(220); var button=createButton("回答"); button.position(325,300); button.mousePressed(kaitou); input=createInput(); input.position(150,300); shutudai(code); } function kaitou(){ if(waiting==0){ fill(0); var ans=input.value(); if(ans==answer){ text("正解!",20,300); input.value(""); seikai=seikai+1; toi=toi+1; waiting=1; Seikai(center); setTimeout(function(){background(220);waiting=0;nokori(toi,code);},3000); }else{ text("不正解",20,300); input.value(""); toi=toi+1; waiting=1; matigai(center); setTimeout(function(){background(220);waiting=0;nokori(toi,code);},3000); } } } function choose(code,country,aa){ code.splice(aa,1); return country; } function shutudai(code){ fill(0); textStyle(BOLD); textFont("sanserif"); textSize(30); text(question,10,35); var aa=floor(random(0,code.length)); var country=code[aa]; choose(code,country,aa); if(country=="Fra"){ France();//フランス  }else if(country=="Ger"){ Germany();//ドイツ }else if(country=="Pol"){ Poland();//ポルスカ }else if(country=="Rus"){ Russia();//ロシア }else if(country=="Rom"){ Romania();//ルーマニア }else if(country=="Lit"){ Lithuania();//リトアニア }else if(country=="Est"){ Estonia();//エストニア }else if(country=="Lat"){ Latvia();//ラトビア }else if(country=="Bul"){ Bulgaria();//ブルガリア }else if(country=="Hun"){ Hungary();//ハンガリー }else if(country=="Mon"){ Monaco();//モナコ }else if(country=="Ukr"){ Ukraine();//ウクライナ }else if(country=="Cze"){ Czech();//チェコ }else if(country=="Fin"){ Finland();//フィンランド }else if(country=="Swe"){ Sweden();//スウェーデン }else if(country=="Den"){ Denmark();//デンマーク }else if(country=="Nor"){ Norway();//ノルウェー }else if(country=="Ice"){ Iceland();//アイスランド }else if(country=="Slo"){ Slovakia();//スロバキア }else if(country=="Gre"){ Greece();//ギリシャ }else if(country=="Ita"){ Itary();//イタリア }else if(country=="Aus"){ Austria();//オーストリア }else if(country=="Ile"){ Ileland();//アイルランド }else if(country=="Swi"){ Switzerland();//スイス }else if(country=="Neth"){ Netherlands();//オランダ }else if(country=="Lux"){ Luxembourg();//ルクセンブルク }else if(country=="Bel"){ Belgium();//ベルギー }else if(country=="GBr"){ GreatBriten();//イギリス }else if(country=="NMa"){ NorthMachednia();//北マケドニア } } function Seikai(center){ noFill(); strokeWeight(25); stroke(220); ellipse(center,200,202); stroke("red"); ellipse(center,200,200); noStroke(); } function matigai(center){ stroke(0,0,255); strokeWeight(25); line(center-100,85,center+100, 285); line(center+100,85, center-100, 285); noStroke(); } function nokori(toi,code){ if(toi<10){ shutudai(code); }else if(toi>=10){ waiting=1; background(220); textSize(35); fill(0); text("あなたのスコア:"+seikai+"/10",40,200); } }
プログラミング相談/質問/発表/雑談
いぶたく
2026/02/01 16:25
作品名:素因数分解ゲーム 説明:素因数分解をするゲームです。難易度設定とか作ろうと思ったのですが時間がなくてまだ作ってません 追記:編集しました。 //以下コード let N=1; let primefactor=[2,3,5,7,11,13,17,19]; let primefactorquantity=1; let chosennumber=[]; let button; let button2; let button3; let button4; let button5; let message =""; let message2=""; let message3=""; let btx=[]; let bty=[]; let reply=[]; let checked=false; let helped=false; function setup() { createCanvas(400, 400); button=createButton("回答"); button.position(50,350); button.mousePressed(hantei); button2=createButton("リセット"); button2.position(37.5,290); button2.mousePressed(reset); button3=createButton("ヘルプ"); button3.position(320,40); button3.mousePressed(help); button4=createButton("✖"); button4.position(-100,0); button4.mousePressed(Helped); button5=createButton("次へ"); button5.position(-100,0); button5.mousePressed(next); choose(); for(let i=0;i<2;i++){ for(let j=0;j<4;j++){ btx[i*4+j]=175+j*60; bty[i*4+j]=300+i*60; } } } function draw() { background(220); fill(0); textAlign(CENTER, CENTER); textFont("Yu Gothic Medium"); textStyle(BOLD); textSize(40); text("素因数分解",width/2,50); textSize(30); text(N,width/2,height/2-50); text(message,width/2,height/2+10); text(message2,width/2,height/2+10); for(i=0;i<8;i++){ fill(255); ellipse(btx[i],bty[i],50); fill(0); textSize(20); text(primefactor[i],btx[i],bty[i]); } if(helped){ fill(200); rect(25,50,350,320); button.position(-100,0); button2.position(-100,0); button4.position(25,50); fill(0); textSize(30); text("操作方法",200,80); textSize(20); text("・右下のボタンを押して素因数を\n選択します",200,140); text("・間違えたらリセットボタンを\n押してください",200,200); text("・回答が終わったら、回答ボタン\nを押してください",200,260); text("・その後、スペースキーを押すと\n次の問題に進みます",200,320); }else{ button.position(50,350); button2.position(37.5,290); button4.position(-100,0); } message2=ChangeReply(reply); } function ChangeReply(array){ let a=""; if(array.length>=1){ for(i=0;i<array.length-1;i++){ a=a+array[i]+"×"; } a=a+array[array.length-1]; return a; }else{ return " "; } } function next(){ if(checked&&!helped){ button.position(50,350); button5.position(-100,0); message=""; choose(); checked=false; } } function choose(){ let times=0; while(true){ times++; if(times>=1000){ message="問題の生成に失敗しました。"; break; } chosennumber=[]; primefactorquantity=floor(random(2,7)); N=1; for(let i=0;i<primefactorquantity;i++){ chosennumber[i]=random(primefactor); N*=chosennumber[i]; } chosennumber.sort((a,b)=>a-b); message3=ChangeReply(chosennumber); if(N<=10000){ break; } } } function hantei(){ if(!checked){ if(check(reply,chosennumber)){ correct(); }else{ incorrect(); } checked=true; reset(); } button.position(-100,0); button5.position(50,350); } function correct(){ message="正解!"; } function incorrect(){ message="不正解\n正しい因数:"+message3; } function reset(){ reply=[]; } function check(a,b){ if(a.length!==b.length){ return false; } for(i=0;i<a.length;i++){ if(a[i]!==b[i]){ return false; } } return true; } function mousePressed(){ for(i=0;i<8;i++){ if(dist(btx[i],bty[i],mouseX,mouseY)<=25&&!checked){ reply.push(primefactor[i]); reply.sort((a,b)=>a-b); } } } function help(){ if(!checked){ checked=true; helped=true; } } function Helped(){ checked=false; helped=false; } //ここまで
みんなのコード保管庫
うんえい2号
2025/03/12 17:11
//描画用関数 function France() { fill("white"); rect(cfx,cfy,300,200);//白 fill(0,35,149); rect(cfx,cfy,100,200);//青 fill(237,41,57); rect(cfx+200,cfy,100,200);//赤 answer="フランス"; } function Germany() { fill("black"); rect(cfx,cfy,1000/3,200/3);//黒 fill(221,0,0); rect(cfx,cfy+200/3,1000/3,200/3);//赤 fill(255,206,0); rect(cfx,cfy+400/3,1000/3,200/3);//金 answer="ドイツ"; } function Poland() { fill("white"); rect(cfx,cfy,320,100);//白 fill(220,20,60); rect(cfx,cfy+100,320,100);//赤 answer="ポーランド"; } function Russia() { fill("white"); rect(cfx,cfy,300,200/3);//白 fill(0,57,166); rect(cfx,cfy+200/3,300,200/3);//青 fill(213,43,30); rect(cfx,cfy+400/3,300,200/3);//赤 answer="ロシア"; } function Romania(){ fill(0,43,127); rect(cfx,cfy,100,200);//青 fill(252,209,22); rect(cfx+100,cfy,100,200);//黄 fill(206,17,38); rect(cfx+200,cfy,100,200);//赤 answer="ルーマニア"; } function Lithuania(){ fill(253,185,19); rect(cfx,cfy,1000/3,200/3);//黄 fill(0,106,68); rect(cfx,cfy+200/3,1000/3,200/3);//緑 fill(193,39,45); rect(cfx,cfy+400/3,1000/3,200/3);//赤 answer="リトアニア"; } function Estonia(){ fill(0,114,206); rect(cfx,cfy,2200/7,200/3); fill("Black"); rect(cfx,cfy+200/3,2200/7,200/3); fill("white"); rect(cfx,cfy+400/3,2200/7,200/3); answer="エストニア"; } function Latvia(){ fill(158,48,57); rect(cfx,cfy,400,200); fill("white"); rect(cfx,cfy+80,400,40); answer="ラトビア"; } function Bulgaria(){ fill("white"); rect(cfx,cfy,1000/3,200/3); fill(0,150,110); rect(cfx,cfy+200/3,1000/3,200/3); fill(214,38,18); rect(cfx,cfy+400/3,1000/3,200/3); answer="ブルガリア"; } function Hungary(){ fill(205,42,64); rect(cfx,cfy,400,200/3); fill("white"); rect(cfx,cfy+200/3,400,200/3); fill(67,111,77); rect(cfx,cfy+400/3,400,200/3); answer="ハンガリー"; } function Monaco(){ fill(206,17,38); rect(cfx,cfy,250,100); fill(255); rect(cfx,cfy+100,250,100); answer="モナコ"; } function Ukraine(){ fill(0,90,187); rect(cfx,cfy,300,100); fill(255,213,0); rect(cfx,cfy+100,300,100); answer="ウクライナ"; } function Czech(){ fill("white"); rect(cfx,cfy,300,100); fill(215,20,26); rect(cfx,cfy+100,300,100); fill(17,69,126); triangle(cfx,cfy,cfx,cfy+200,cfx+150,cfy+100); answer="チェコ"; } function Finland(){ fill("white"); rect(cfx,cfy,3600/11,200); fill(0,53,128); rect(cfx,cfy+800/11,3600/11,600/11); rect(cfx+1000/11,cfy,600/11,200); answer="フィンランド"; } function Sweden(){ fill(0,106,167); rect(cfx,cfy,320,200); fill(254,204,0); rect(cfx,cfy+80,320,40); rect(cfx+100,cfy,40,200); answer="スウェーデン"; } function Denmark(){ fill(198,12,48); rect(cfx,cfy,1850/7,200); fill("white"); rect(cfx,cfy+600/7,1850/7,200/7); rect(cfx+600/7,cfy,200/7,200); answer="デンマーク"; } function Norway(){ fill(239,43,45); rect(cfx,cfy,275,200); fill("white"); rect(cfx,cfy+75,275,50); rect(cfx+75,cfy,50,200); fill(0,40,104); rect(cfx,cfy+87.5,275,25); rect(cfx+87.5,cfy,25,200); answer="ノルウェー"; } function Iceland(){ fill(2,82,156); rect(cfx,cfy,2500/9,200); fill("white"); rect(cfx,cfy+700/9,2500/9,400/9); rect(cfx+700/9,cfy,400/9,200); fill(220,30,53); rect(cfx,cfy+800/9,2500/9,200/9); rect(cfx+800/9,cfy,200/9,200); answer="アイスランド"; } function Slovakia(){ fill("white"); rect(cfx,cfy,300,200/3); fill(11,78,162); rect(cfx,cfy+200/3,300,200/3); fill(238,28,37); rect(cfx,cfy+400/3,300,200/3); fill("white"); quad(cfx+48,cfy+44,cfx+150,cfy+44,cfx+154,cfy+108,cfx+46,cfy+108); arc(cfx+100,cfy+108,108,98,0,PI); fill(238,28,37); quad(cfx+52,cfy+48,cfx+146,cfy+48,cfx+150,cfy+108,cfx+50,cfy+108); arc(cfx+100,cfy+108,100,90,0,PI); fill("white"); rect(cfx+95,cfy+50,10,100); rect(cfx+75,cfy+64,50,10); rect(cfx+70,cfy+85,60,10); fill(11,78,162); arc(cfx+100,cfy+128,84,52,0,PI); ellipse(cfx+100,cfy+130,40,45); ellipse(cfx+72,cfy+130,30,25); ellipse(cfx+128,cfy+130,30,25); arc(cfx+66,cfy+128,18,25,0,PI); arc(cfx+134,cfy+128,18,25,0,PI); answer="スロバキア"; } function Greece(){ fill(13,94,175); rect(cfx,cfy,300,200); fill("white"); rect(cfx+400/9,cfy,200/9,1000/9); rect(cfx,cfy+400/9,1000/9,200/9); rect(cfx+1000/9,cfy+200/9,1700/9,200/9); rect(cfx+1000/9,cfy+600/9,1700/9,200/9); rect(cfx,cfy+1000/9,300,200/9); rect(cfx,cfy+1400/9,300,200/9); answer="ギリシャ"; } function Itary () { fill("white"); rect(cfx,cfy,300,200); fill(0,146,70); rect(cfx,cfy,100,200); fill(206,43,55); rect(cfx+200,cfy,100,200); answer="イタリア"; } function Austria () { fill(237,41,57); rect(cfx,cfy,300,200); fill("white"); rect(cfx,cfy+200/3,300,200/3); answer="オーストリア"; } function Ileland () { fill("white"); rect(cfx,cfy,400,200); fill(22,155,98); rect(cfx,cfy,400/3,200); fill(255,136,62); rect(cfx+800/3,cfy,400/3,200); answer="アイルランド"; } function Switzerland() { fill("red"); rect(cfx,cfy,200,200); fill("white"); rect(cfx+37.5,cfy+81.25,125,37.5); rect(cfx+81.25,cfy+37.5,37.5,125); answer="スイス"; } function Netherlands(){ fill(174,28,40); rect(cfx,cfy,300,200/3); fill("white"); rect(cfx,cfy+200/3,300,200/3); fill(33,70,139); rect(cfx,cfy+400/3,300,200/3); answer="オランダ"; } function Luxembourg(){ fill(237,41,57); rect(cfx,cfy,1000/3,200/3); fill("white"); rect(cfx,cfy+200/3,1000/3,200/3); fill(0,161,222); rect(cfx,cfy+400/3,1000/3,200/3); answer="ルクセンブルク"; } function Belgium(){ fill(0,0,0); rect(cfx,cfy,1000/13,200); fill(250,224,66); rect(cfx+1000/13,cfy,1000/13,200); fill(237,41,57); rect(cfx+2000/13,cfy,1000/13,200); answer="ベルギー"; } function GreatBriten(){ fill(1,33,105); rect(cfx,cfy,1000/3,200); fill("white"); quad(cfx,cfy,cfx+1000/3,cfy+200,cfx+883.381/3,cfy+200,cfx,cfy+23.3238); quad(cfx,cfy,cfx+1000/3,cfy+200,cfx+1000/3,cfy+176.6762,cfx+38.873,cfy); quad(cfx+1000/3,cfy,cfx,cfy+200,cfx,cfy+176.6762,cfx+883.381/3,cfy); quad(cfx+1000/3,cfy,cfx,cfy+200,cfx+38.873,cfy+200,cfx+1000/3,cfy+23,3238); fill(200,16,46); quad(cfx,cfy,cfx,cfy+15.55,cfx+140.75,cfy+100,cfx+500/3,cfy+100); quad(cfx+500/3,cfy+100,cfx+1000/3,cfy+200,cfx+1000/3,cfy+184.45 ,cfx+192.582,cfy+100); quad(cfx+1000/3,cfy,cfx+500/3,cfy+100,cfx+140.75,cfy+100,cfx+307.418,cfy); quad(cfx+500/3,cfy+100,cfx,cfy+200,cfx+25.915,cfy+200,cfx+192.582,cfy+100); fill("white"); rect(cfx+400/3,cfy,200/3,200); rect(cfx,cfy+200/3,1000/3,200/3); fill(200,16,46); rect(cfx+440/3,cfy,40,200); rect(cfx,cfy+80,1000/3,40); answer="イギリス"; } function NorthMachednia(){ fill(206,32,40); rect(cfx,cfy,400,200); fill(249,214,22); triangle(cfx,cfy,cfx+200,cfy+100,cfx+60,cfy); triangle(cfx+180,cfy,cfx+200,cfy+100,cfx+220,cfy); triangle(cfx+340,cfy,cfx+200,cfy+100,cfx+400,cfy); triangle(cfx+400,cfy+80,cfx+200,cfy+100,cfx+400,cfy+120); triangle(cfx+340,cfy+200,cfx+200,cfy+100,cfx+400,cfy+200); triangle(cfx+180,cfy+200,cfx+200,cfy+100,cfx+220,cfy+200); triangle(cfx,cfy+200,cfx+200,cfy+100,cfx+60,cfy+200); triangle(cfx,cfy+80,cfx+200,cfy+100,cfx,cfy+120); fill(206,32,40); ellipse(cfx+200,cfy+100,500/7,500/7); fill(249,214,22); ellipse(cfx+200,cfy+100,400/7,400/7); answer="北マケドニア"; }
みんなのコード保管庫
うんえい2号
2025/03/12 17:11
let question="この国の名称は?(通称)  全29問"; let input; let cfx=100;//国旗の起点のx座標 ("C"ountry "F"lag "X" の略) let cfy=50;//国旗の起点のy座標 ("C"ountry "F"lag "Y" の略) let seikai=0; let toi=0; let answer; let waiting=0; let center=550/2; let code=["Fra","Ger","Pol","Rus","Rom","Lit","Est","Lat","Bul","Hun","Mon","Ukr","Cze","Fin","Swe","Den","Nor","Ice","Slo","Gre","Ita","Aus","Ile","Swi","Neth","Lux","Bel","GBr","NMa"]; function setup() { createCanvas(550, 400); noStroke(); background(220); var button=createButton("回答"); button.position(325,300); button.mousePressed(kaitou); input=createInput(); input.position(150,300); shutudai(code); } function kaitou(){ if(waiting==0){ fill(0); var ans=input.value(); if(ans==answer){ text("正解!",20,300); input.value(""); seikai=seikai+1; toi=toi+1; waiting=1; Seikai(center); setTimeout(function(){background(220);waiting=0;nokori(toi,code);},3000); }else{ text("不正解",20,300); input.value(""); toi=toi+1; waiting=1; matigai(center); setTimeout(function(){background(220);waiting=0;nokori(toi,code);},3000); } } } function choose(code,country,aa){ code.splice(aa,1); return country; } function shutudai(code){ fill(0); textStyle(BOLD); textFont("sanserif"); textSize(30); text(question,10,35); var aa=floor(random(0,code.length)); var country=code[aa]; choose(code,country,aa); if(country=="Fra"){ France();//フランス  }else if(country=="Ger"){ Germany();//ドイツ }else if(country=="Pol"){ Poland();//ポルスカ }else if(country=="Rus"){ Russia();//ロシア }else if(country=="Rom"){ Romania();//ルーマニア }else if(country=="Lit"){ Lithuania();//リトアニア }else if(country=="Est"){ Estonia();//エストニア }else if(country=="Lat"){ Latvia();//ラトビア }else if(country=="Bul"){ Bulgaria();//ブルガリア }else if(country=="Hun"){ Hungary();//ハンガリー }else if(country=="Mon"){ Monaco();//モナコ }else if(country=="Ukr"){ Ukraine();//ウクライナ }else if(country=="Cze"){ Czech();//チェコ }else if(country=="Fin"){ Finland();//フィンランド }else if(country=="Swe"){ Sweden();//スウェーデン }else if(country=="Den"){ Denmark();//デンマーク }else if(country=="Nor"){ Norway();//ノルウェー }else if(country=="Ice"){ Iceland();//アイスランド }else if(country=="Slo"){ Slovakia();//スロバキア }else if(country=="Gre"){ Greece();//ギリシャ }else if(country=="Ita"){ Itary();//イタリア }else if(country=="Aus"){ Austria();//オーストリア }else if(country=="Ile"){ Ileland();//アイルランド }else if(country=="Swi"){ Switzerland();//スイス }else if(country=="Neth"){ Netherlands();//オランダ }else if(country=="Lux"){ Luxembourg();//ルクセンブルク }else if(country=="Bel"){ Belgium();//ベルギー }else if(country=="GBr"){ GreatBriten();//イギリス }else if(country=="NMa"){ NorthMachednia();//北マケドニア } } function Seikai(center){ noFill(); strokeWeight(25); stroke(220); ellipse(center,200,202); stroke("red"); ellipse(center,200,200); noStroke(); } function matigai(center){ stroke(0,0,255); strokeWeight(25); line(center-100,85,center+100, 285); line(center+100,85, center-100, 285); noStroke(); } function nokori(toi,code){ if(toi<10){ shutudai(code); }else if(toi>=10){ waiting=1; background(220); textSize(35); fill(0); text("あなたのスコア:"+seikai+"/10",40,200); } }
プログラミング相談/質問/発表/雑談
いぶたく
2026/02/01 16:25
作品名:素因数分解ゲーム 説明:素因数分解をするゲームです。難易度設定とか作ろうと思ったのですが時間がなくてまだ作ってません 追記:編集しました。 //以下コード let N=1; let primefactor=[2,3,5,7,11,13,17,19]; let primefactorquantity=1; let chosennumber=[]; let button; let button2; let button3; let button4; let button5; let message =""; let message2=""; let message3=""; let btx=[]; let bty=[]; let reply=[]; let checked=false; let helped=false; function setup() { createCanvas(400, 400); button=createButton("回答"); button.position(50,350); button.mousePressed(hantei); button2=createButton("リセット"); button2.position(37.5,290); button2.mousePressed(reset); button3=createButton("ヘルプ"); button3.position(320,40); button3.mousePressed(help); button4=createButton("✖"); button4.position(-100,0); button4.mousePressed(Helped); button5=createButton("次へ"); button5.position(-100,0); button5.mousePressed(next); choose(); for(let i=0;i<2;i++){ for(let j=0;j<4;j++){ btx[i*4+j]=175+j*60; bty[i*4+j]=300+i*60; } } } function draw() { background(220); fill(0); textAlign(CENTER, CENTER); textFont("Yu Gothic Medium"); textStyle(BOLD); textSize(40); text("素因数分解",width/2,50); textSize(30); text(N,width/2,height/2-50); text(message,width/2,height/2+10); text(message2,width/2,height/2+10); for(i=0;i<8;i++){ fill(255); ellipse(btx[i],bty[i],50); fill(0); textSize(20); text(primefactor[i],btx[i],bty[i]); } if(helped){ fill(200); rect(25,50,350,320); button.position(-100,0); button2.position(-100,0); button4.position(25,50); fill(0); textSize(30); text("操作方法",200,80); textSize(20); text("・右下のボタンを押して素因数を\n選択します",200,140); text("・間違えたらリセットボタンを\n押してください",200,200); text("・回答が終わったら、回答ボタン\nを押してください",200,260); text("・その後、スペースキーを押すと\n次の問題に進みます",200,320); }else{ button.position(50,350); button2.position(37.5,290); button4.position(-100,0); } message2=ChangeReply(reply); } function ChangeReply(array){ let a=""; if(array.length>=1){ for(i=0;i<array.length-1;i++){ a=a+array[i]+"×"; } a=a+array[array.length-1]; return a; }else{ return " "; } } function next(){ if(checked&&!helped){ button.position(50,350); button5.position(-100,0); message=""; choose(); checked=false; } } function choose(){ let times=0; while(true){ times++; if(times>=1000){ message="問題の生成に失敗しました。"; break; } chosennumber=[]; primefactorquantity=floor(random(2,7)); N=1; for(let i=0;i<primefactorquantity;i++){ chosennumber[i]=random(primefactor); N*=chosennumber[i]; } chosennumber.sort((a,b)=>a-b); message3=ChangeReply(chosennumber); if(N<=10000){ break; } } } function hantei(){ if(!checked){ if(check(reply,chosennumber)){ correct(); }else{ incorrect(); } checked=true; reset(); } button.position(-100,0); button5.position(50,350); } function correct(){ message="正解!"; } function incorrect(){ message="不正解\n正しい因数:"+message3; } function reset(){ reply=[]; } function check(a,b){ if(a.length!==b.length){ return false; } for(i=0;i<a.length;i++){ if(a[i]!==b[i]){ return false; } } return true; } function mousePressed(){ for(i=0;i<8;i++){ if(dist(btx[i],bty[i],mouseX,mouseY)<=25&&!checked){ reply.push(primefactor[i]); reply.sort((a,b)=>a-b); } } } function help(){ if(!checked){ checked=true; helped=true; } } function Helped(){ checked=false; helped=false; } //ここまで
ソウサク
ケイジバン
楽曲投稿スレ2
フブキ
2026/03/16 13:04
🍡【週刊TGPプレイリスト】3月第2週目 by フブキ 色々ありすぎて昨日出せなかった懺悔!!!! 🚃発メロ部門 ・gVP4Fe9tH8bJqBr7Jizc-BYtD8ZQPYum7G3YgebGq  「NR-KTST-029-00」E235系1000番台さん  朝の目覚めのような爽やかで明るい曲。  タイトルの付け方って何か法則があるんでしょうか…(無知) 🎶中尺BGM部門 ・gVP4Fe9tH8bJqBr7Jizc-ivza4Ooc2CF0sfIttdDD  「graves/Sad」絵落さん  短調ながら舞踏のようなかっこよさを含んだ良曲。  聞いた後の満足感もさすがです。 🎵短尺BGM部門 ・gVP4Fe9tH8bJqBr7Jizc-gYGEX2r2tcwc7UDZCEkm  「4851004511748096」 ねんねさん  ソングメーカー作品。  メロディーめちゃくちゃ良いのでいつか伴奏つきが聴けたらいいな。テレパシーで送ってください! 🎤カバー部門① ・gVP4Fe9tH8bJqBr7Jizc-yM9tKLv9mr9KSnJaIQSy  「僕らだけの鼓動を 歌ってみた」だいちさん  ぼくこどをだいち御兄様が歌ってくださいましたわー!  低音がイケボなのでぜひお聴きくださいまし!ギョ! 🌅僕らだけの部門(?) ・gVP4Fe9tH8bJqBr7Jizc-p91xQWSPXjLaO4kUgZtG  「僕らだけの黎明を」フブキ  遭難スレにMVがあります!!ぜひ!!  オフボーカルもあるのでBGMとしても聴けるよ~ 🎙️カバー部門② ・gVP4Fe9tH8bJqBr7Jizc-yM9tKLv9mr9KSnJaIQSy  「僕らだけの夏を/とまと/僕らだけの鼓動を」あとらすさん  三曲セットの大ボリューム!  ぼくなつめちゃくちゃ難しいやないかと思い知らされました。歌ってくれてありがとう! 🎛️ボカロカバー部門 ・gVP4Fe9tH8bJqBr7Jizc-IX0q55GZ8s3NLwQ5n0NP  「【カバー】僕らだけの黎明を feat.KAITO SP」レイヴンさん  早すぎる「僕らだけの黎明を」のKAITOカバー!  時折聞こえるビブラートが良いですね…! 🎼長尺BGM部門 ・gVP4Fe9tH8bJqBr7Jizc-y3XoUwGctDsypH0IpC4I  「BandLabSong (9)」なぎさん  「僕らだけのキセキを」のインストバージョン。  遭難スレにはMV付きの完成版が載っているのでぜひご覧ください! 🎸ギター部門 ・gVP4Fe9tH8bJqBr7Jizc-xxCNRQbT198qrpC7HoBY  「アコギ 弾いた」守護者さん  アコースティックの落ち着く音色!  繊細で綺麗な音の粒です。 ⛩️箏部門 ・gVP4Fe9tH8bJqBr7Jizc-BrpWYwLYF9EHZLLAfMV8  「さくら」サクラ🌸さん  サクラさんがさくらを弾いている…!!  箏の美しくも力強い音色が癖になりますね。 そして今週の最多コメント賞は… 🏆最多コメント賞 ・gVP4Fe9tH8bJqBr7Jizc-oduQLjYmrofavvHeVfyQ  「星彩な永光と」にゃありいさん  THEにゃありいを感じられる圧倒的な電子の世界!!  予測不能のメロディーは星彩な物語を紡いでゆく。 今週分の更新はまとられないので最後かな? ありがとうございました!!
更新情報
play_circle_filled
【サーベイ】
2025/03/17 更新情報は、ゼンタイケイジバンの運営からのお知らせを見てね:newforums#zUuUZ82ZWoPuLsFCAUgQ
play_circle_filled
【タイピング】
2025/03/18 TypingGameProjectへようこそ!
play_circle_filled
【プログラミング】
2025/03/18 「書く描くプログラミング」は初めての人も大丈夫です。自分のペースで取り組もう!