單機方塊程式 - 魔術方塊

By Oliver
at 2008-12-01T00:34
at 2008-12-01T00:34
Table of Contents
話說下載了我妹家的計時器後
發現
沒有SC 囧
在Google找到沒耐心後
自己開了Dev-c++寫了一隻SC的程式
還不錯用
每次的公式都不一樣XD
送給大家用用
http://0rz.tw/1453A
--
操作說明
========
先輸入SC步驟次數,再按Enter跑出SC後
然後開始轉
再按Enter(請按任意鍵繼續...)
還需要SC就再輸入步驟次數,再按下Enter
要關掉就按0 Enter
--
以下是原始程式
會改的大大愛改就改吧
--
#include<iostream>
#include<stdio.h>
#include<ctime>
using namespace std;
int main()
{
int a,b,c,d,e,f,g,h;
char i,j;
while(getchar()!='0')
{
system("cls");
for(cin>>b;b>0;b--)
{
srand(2*b*b+3*b+1+time(NULL)); //腦號中浮出老師數學課講的多項式
f=d;
d=a;
g=e;
e=as;
do{
a=rand()%3+1;
as=rand()%2;
}while((a==d)||((as==e)&&(as==g)));
h=a*2-as;
c=rand()%3+1;
switch(a)
{
case 1:
{
i='U';
break;
}
case 2:
{
i='D';
break;
}
case 3:
{
i='L';
break;
}
case 4:
{
i='R';
break;
}
case 5:
{
i='F';
break;
}
case 6:
{
i='B';
break;
}
}
switch(c)
{
case 1:
{
j=' ';
break;
}
case 2:
{
j='\'';
break;
}
case 3:
{
j='2';
break;
}
}
cout << i << j << " " ;
}
cout << endl << endl << endl ;
system("pause");
}
return 0;
}
--
覺得好就推個文吧 ^ ^
--
記錄時間:2008年12月1日 1:25
計時方式:LBL
觀察時間:15秒
頭尾各去1筆資料
序號 Layer 1 Layer2 OLL PLL 總時間 備註
1 46.634 1.606 18.528 12.547 79.315
2 40.454 13.216 16.844 6.451 76.965
3 27.738 33.410 19.204 5.956 86.308
4 17.479 17.976 29.846 6.307 71.608
5 29.111 0.529 29.525 25.325 84.491
6 24.920 22.967 20.662 0.527 69.077
7 26.325 16.027 24.249 10.469 77.070
8 19.719 24.081 27.112 6.154 77.066
9 34.364 28.325 16.621 12.539 91.849
10 28.910 0.986 31.169 23.187 84.252
平均
原始 29.565 15.912 23.376 10.946 79.800
去頭尾 28.942 15.648 23.246 10.451 79.634
我變快了XD , 以前都100起跳 囧
--
※ 發信站: 批踢踢食葉坊(批踢踢點西西)
◆ From: 夭夭八點夭六夭點拐九點夭五六
推 chiohunpp:酷!不過這個我不會改,你的方塊給我改比較快 12/01 00:39
→ tomtim:以這程度初賽應該是很ok 學弟高一就拿個大學選擇權吧XD 12/01 00:42
推 Maybetrue:好強喔...你寫C的方式跟我差好多,囧...我簡直是初心者 12/01 01:04
推 justloveaki:推 雖然只看懂一點點 12/01 01:07
※ 編輯: adamsun0306 來自: 118.161.79.156 (12/01 02:15)
→ z753951zxc:SC中槍 12/01 02:13
推 Holocaust123:太棒了 來幫我寫作業吧 12/01 03:19
推 Maybetrue:酷喔,秒數加油 12/01 08:09
推 denby:我覺得我要重修c++了Orz 12/01 08:11
→ shisone:會有D2 U2 D'的情況 顆顆 12/01 08:11
推 civitcat00:記得好像可以加randomize(); 12/01 10:35
→ civitcat00:會打亂比較徹底? 12/01 10:36
→ windmaster:推! 我寫程式只能用來計算使用… 太嫩了 12/01 17:22
→ lovecube:還蠻好用的XD 12/01 17:52
→ chingushin:方塊板的人真的是臥虎藏龍阿=_=a 12/01 21:41
推 angellin8551:要怎麼跳出來.... 12/01 21:56
→ adamsun0306:打16會跑出16個步驟,以此類推,打0會結束 12/02 17:06
※ 編輯: adamsun0306 來自: 203.64.138.51 (12/02 17:14) 推 denby:直接關閉也可以跳出來XDDD 12/02 19:41
→ civitcat00:你按電腦的開機鍵也可以跳出來喔(奸笑) 12/02 21:10
推 chiohunpp:雙腳用力蹬不就跳出來了(鄉民:那是跳起來吧!) 12/02 21:45
推 PhySeraph:資工人推一個 12/03 17:14
→ adamsun0306:這竟然是高中一年級的實力~ 12/05 00:30
Tags:
魔術方塊
All Comments

By Kelly
at 2008-12-03T09:16
at 2008-12-03T09:16

By Erin
at 2008-12-03T20:45
at 2008-12-03T20:45

By Agnes
at 2008-12-08T01:35
at 2008-12-08T01:35

By Zenobia
at 2008-12-11T05:54
at 2008-12-11T05:54

By Kyle
at 2008-12-12T20:21
at 2008-12-12T20:21

By Lucy
at 2008-12-15T13:46
at 2008-12-15T13:46

By Andrew
at 2008-12-19T10:36
at 2008-12-19T10:36

By Brianna
at 2008-12-22T01:48
at 2008-12-22T01:48

By Sarah
at 2008-12-22T08:08
at 2008-12-22T08:08

By Lucy
at 2008-12-26T11:34
at 2008-12-26T11:34

By Andrew
at 2008-12-28T12:12
at 2008-12-28T12:12

By Eden
at 2008-12-29T21:32
at 2008-12-29T21:32

By Puput
at 2008-12-30T21:40
at 2008-12-30T21:40

By Anthony
at 2009-01-02T09:05
at 2009-01-02T09:05

By Hazel
at 2009-01-03T13:01
at 2009-01-03T13:01

By Genevieve
at 2009-01-08T08:59
at 2009-01-08T08:59

By Christine
at 2009-01-11T00:17
at 2009-01-11T00:17

By Audriana
at 2009-01-15T07:59
at 2009-01-15T07:59

By Vanessa
at 2009-01-15T17:42
at 2009-01-15T17:42

By Bethany
at 2009-01-15T21:22
at 2009-01-15T21:22

By Irma
at 2009-01-17T11:19
at 2009-01-17T11:19
Related Posts
2223的教學網站或文件

By Queena
at 2008-11-30T17:14
at 2008-11-30T17:14
M2 method

By Gilbert
at 2008-11-30T17:01
at 2008-11-30T17:01
Ubry

By Kyle
at 2008-11-30T16:31
at 2008-11-30T16:31
ET 暴笠調整東賢4X4!!

By Kyle
at 2008-11-30T15:52
at 2008-11-30T15:52
週末洨比賽

By Tristan Cohan
at 2008-11-30T12:41
at 2008-11-30T12:41