teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

タグ追加

2018/10/30 12:03

投稿

aine_
aine_

スコア22

title CHANGED
File without changes
body CHANGED
File without changes

2

スペルミス

2018/10/30 12:03

投稿

aine_
aine_

スコア22

title CHANGED
File without changes
body CHANGED
@@ -18,8 +18,8 @@
18
18
  with_obstacle2 = True,with_obstacle3 = True)
19
19
 
20
20
  for i in range (3)
21
- self.obstacle%d_center_x = obstacle%d_center_x %(i)
21
+ self.obstacle%d_center_x %(i) = obstacle%d_center_x %(i)
22
- self.obstacle%d_center_y = obstacle%d_center_y %(i)
22
+ self.obstacle%d_center_y %(i) = obstacle%d_center_y %(i)
23
23
 
24
24
  ```
25
25
  と書いたのですが

1

スペルミス

2018/10/30 12:01

投稿

aine_
aine_

スコア22

title CHANGED
File without changes
body CHANGED
@@ -1,18 +1,18 @@
1
1
  もとのコードが
2
2
  ```pyhon
3
3
  def_init_(
4
- obstacle_center_x=3.0,obstacle_center_y=3.0
4
+ obstacle_center_x=3.00,obstacle_center_y=3.00
5
5
  with_obstacle = True)
6
6
 
7
7
  self.obstacle_center_x = obstacle_center_x
8
8
  self.obstacle%center_y = obstacle_center_y
9
- ```というもので、この外にほかのコードがあり、それにより位置を設定するのみでobstacleが生成されます。
9
+ ```というもので、この外にほかのコードがあり、それによりcenter位置を設定するのみでobstacleが生成されます。
10
10
  このobstacleを増やしたいため
11
11
  ```python
12
12
  def_init_(
13
- obstacle0_center_x=8.0, obstacle0_center_y=0,
13
+ obstacle0_center_x=8.00, obstacle0_center_y=0,
14
14
  obstacle1_center_x=8.00, obstacle1_center_y=-0.06,
15
- obstacle2_center_x=8.0, obstacle2_center_y=-0.12,
15
+ obstacle2_center_x=8.00, obstacle2_center_y=-0.12,
16
16
  obstacle3_center_x=8.00, obstacle3_center_y=-0.18,
17
17
  with_obstacle0 = True,with_obstacle4 = True,
18
18
  with_obstacle2 = True,with_obstacle3 = True)
@@ -29,7 +29,7 @@
29
29
  ちなみに
30
30
  ```python
31
31
  def_init_(
32
- obstacle0_center_x=8.0, obstacle0_center_y=0,
32
+ obstacle0_center_x=8.00, obstacle0_center_y=0,
33
33
  obstacle1_center_x=8.00, obstacle1_center_y=-0.06,
34
34
  with_obstacle0 = True, with_obstacle1 = True)
35
35