5黑马币
最佳答案张老师放了一盏常亮的灯在路转角,你只要不放置就好了,
将右转也放入灯状态的转换序列S2N("N2S","S2W",false),S2W("N2E","E2W",false),E2W("W2E","E2S",false),E2S("W2N","S2N",false)
中在添加两个
S2N("N2S","S2W",false),S2W("N2E","S2E",false),S2E("N2W","E2W",false),E2W("W2E","E2S",false),E2S("W2N","E2N",false),E2N("W2S","S2N",false)
对面的灯也相应的添加两个,最后的四个常量等不要了。
就可以实现了,当然,这只 ...
| |
| |
| |
| |