作者todo2015 (土豆)
看板b94902HW
標題[C++ ] 我朋友的問題orz
時間Mon May 15 23:57:47 2006
一個魔術方塊的問題
Rubik's Cube
Rubik's Cube is a famous game, entertaining both kids as well as
adults. The Rubik's Cube is a cube with 6 different colors, one for
each surface. The cube is 'chopped up' into 3 rows, 3 columns and 3
layers in such a way that rotation is possible about any of the three
axes. By turning or twisting one layer (of 9 mini-cubes) at a time, the
color arrangement is distorted. By repeated random rotation of
layers, the cube is shuffled.
The object of the game is to get a shuffled Rubik's cube back to it's
initial state, i.e., with only one color on each side.
So, make a program to accept a shuffled Rubik's cube (or randomly
generate a shuffled cube), and twist and turn it back into order.
Preferably with a neat graphical display.
這是我別系同學問我的
我自己也想過~"~
可是完全沒頭緒orz
不知道各位有沒有什麼建議的..
謝啦!!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.248.38
推 Lycca:囧 資管系的加分題喔 05/16 00:23
推 LPH66:很好 如果這是給計程新手的加分題 可以請他放棄了Orz 05/16 00:34
→ LPH66:最近一直感嘆怎麼許多老師都出這種難死人不償命的題目... 05/16 00:34
→ LPH66:如果說只有解魔方還好 至少網路上都有公式 05/16 00:35
→ LPH66:看到那句"Preferably with a neat graphical display." 05/16 00:35
→ LPH66:我就會想把整個題目拿去丟進焚化爐裡去 05/16 00:35
推 Sinze:我連直接解魔術方塊都不會了>< 05/16 01:39
推 todo2015:聽說這題的bonus是史上最高..XD 05/16 08:06
推 kcir:我玩魔術方塊從來就沒有成功過.. 何況是要寫程式模擬.. 05/16 08:55
→ kcir:graphical display.. 這門課該不會叫"C++與Flash"吧.. 05/16 08:56
推 hectorhsu:資管程設加分題.. 05/16 09:22
→ hectorhsu:就把所有公式的判斷和模擬寫上去..不過大概...||| 05/16 09:22
→ hectorhsu:老師說是"Huge" Bonus = =a 05/16 09:23