diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md index bd5d68131e5..b1254ac0c80 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a2d86799a58517c29f79a5.md @@ -220,8 +220,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md index 8a7a5490fb4..70917677438 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf2aff7f1fc7a550f40cb.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md index 4db2e32b171..0b5367819a4 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aaf83d46b16a7b20a27051.md @@ -241,8 +241,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md index c6aca7756f6..8c76caac829 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab0134716d0a7c8889f167.md @@ -210,8 +210,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md index fbf935e3d8c..4543e5eb24d 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab06a9cc033b7d4a8bad2a.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md index dd4878c87a1..c139b43f06d 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab143edad72b7e25b23f8a.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md index abdfcc43b0e..df9ec808444 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64ab178206f3237eafcc0ef4.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md index b90b21969c1..a3e5b1cccdb 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acebecb7484c8c6a760534.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md index 9f9b7bf5646..5e82fff49c8 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64aced3e88b0a38cec824dea.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md index 25b6a98ae64..f9d259a1b93 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acedb5f59c0c8d43e96aa4.md @@ -216,8 +216,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md index 26282cfbf8c..624915020f7 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf1af380a708ded8761f0.md @@ -245,8 +245,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md index d7e624dcbea..aa8ff0c7c20 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64acf287857bb38e6dd7ca69.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md index b4d1d81db48..337451447f9 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c703f58330b3767399e486.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md index 6e281f253a8..db4d04998ba 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c705fd8969d677066792b8.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md index f16f12e0503..f0b4186a192 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c708fe06b0c3776f90faaf.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md index 29191046767..c2628c79430 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70d3bf7504978368da6ad.md @@ -222,8 +222,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md index 5f33f48cd61..ffa76c0d679 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c70f78dbf5667a307a7d90.md @@ -222,8 +222,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md index 15777e97ee9..30e6b5e6526 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c71235eba6c67adaa9a458.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md index 299761f4508..8032d85e56f 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7135a9d35797b4bfb01b3.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md index 1b7c4690679..1ea60cb210c 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c714ec1b844f7bc0723deb.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md index d794f67b04f..94f68ec8852 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c715769bab5f7c14f6cd7b.md @@ -221,8 +221,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md index 790b3fe12b3..7354fc35209 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7168cba4a4f7c90c26277.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md index cef18af0fab..028621fd89b 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7173772c2497ce99b474c.md @@ -231,8 +231,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md index ba088ae6cad..c38cb9ddb6a 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7202620a5e17d8a3c777d.md @@ -237,8 +237,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md index a118c7e778b..6f9b253f2cb 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c72e52133d687e8e6a60f6.md @@ -232,8 +232,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md index 0f231f5977c..4ae0ba136e3 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73367cce78a7fd65dd3be.md @@ -213,8 +213,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md index a76a2e28f99..786bca0cce9 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c734293def73808e609778.md @@ -213,8 +213,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md index 549b7d9958e..894d1e58644 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c736a531835181349c27d2.md @@ -214,8 +214,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md index 1969f8aec1e..ef839afd1a2 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73981de025581bddb89eb.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md index 5d4f2f003e6..9e82050b272 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c73df1424422832333a9fa.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md index 4b1cf443127..03f904d8cfe 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a226587f502c0525927.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md index 78296c2c791..e66eaf46bff 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74a8a4138c6032241d498.md @@ -232,8 +232,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md index 98ad2806e81..19c13a5dd7c 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74c293dd7cf03cbd58194.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md index 863b556c833..7eea9fde1f7 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c74e0064a9080443af0796.md @@ -210,8 +210,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md index f9b1a616d5b..57a5947542e 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c750c328e06f0878a9272e.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md index 2ecc5d231d2..a03d0f6332d 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7527100b19b09037ce5db.md @@ -216,8 +216,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md index 3255629f011..e5d52c57c2c 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7538db3e33d09704ab148.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md index fe240206bbb..331fc90c91a 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c754f598ca5409d0a08884.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md index 81d735c3b36..8eab1ff3633 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c755bf0034b20a428a4a1b.md @@ -208,8 +208,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md index 6619c697bdc..644eda3f0d2 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7561d44e2300a90a38ab6.md @@ -236,8 +236,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md index 2899998b9e8..3556196eb2d 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c7573fd2265f0b1c77e2ec.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md index 4e74469c4f9..1ae82ede54a 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c758ab7352130b775df8c4.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md index a3476e3eb87..0d7bcf49c65 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c764dd9071050d0a2c1473.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md index 30ca7c73ea2..7e9df37bea4 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9bab6998128282da063f9.md @@ -211,8 +211,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md index e44b02dd0d2..d64a06e9bc4 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9db021d4d912906878f3a.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md index 638bb466729..38fea37dfa7 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9dc4bd63a92295347c449.md @@ -224,8 +224,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md index d9a5ea327f6..e078a2f7d4b 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e4cc5f06902dc75dc8f4.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md index 4981cca3e89..fb41cb5cc7b 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md index fe8e4f8db38..7efea5eca16 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9efea385ca536bf467a7c.md @@ -208,8 +208,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md index 9e414a02015..c8f487558f6 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fa51209ab5395d524cce.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md index 3318786b170..f6164e2d462 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9fe7b2ffa3539fbf82d32.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md index d0371c72105..5ba953124a1 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md index 05ac7920583..f3566e3fbc7 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caea41a4199e54253c60ca.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md index 7efda9045cc..73b8ef3b435 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeb134c3cdc5498cd75b9.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md index a4531f7b311..78f08c73cb8 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caeeae2fa57756035d6012.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md index 5874bb8eb4d..56534fbb567 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf1be15606d5814c3387b.md @@ -224,8 +224,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md index 58658716376..31c5e93dcf5 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64caf237baef43587be6d860.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md index ffd38503006..951a7a9b683 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb24c224ac2c61fa1c70aa.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md index db7b18c2008..f71961e5a17 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb262dd91ecc62998736af.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md index c5f2f2bd6e0..6daf0cb6f26 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb26e84dd0b56313ba0c6e.md @@ -214,8 +214,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md index c19056c219a..b98397fb88f 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2a87057eb5655c66d1c2.md @@ -218,8 +218,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md index 93d5673caec..4bdca15477c 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2da32f8443669fd4e725.md @@ -231,8 +231,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md index 702b83cc24e..5a611a2bb51 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2e5bdfb23a67272a07c7.md @@ -240,8 +240,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md index c72b49c12ee..4329bba6d11 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb2ff0c31b0f67a6d76a47.md @@ -237,8 +237,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md index c763ec2ed1f..267ddf28e63 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb30b8e4719a67fe14f364.md @@ -239,8 +239,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md index 511453db944..ee6e82dcfed 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb34c01b3d856a9a59261d.md @@ -225,8 +225,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md index 41091f4a612..5da218c486d 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb3f62b10c336bada1c70c.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md index 3d4cb8f18f6..222309e32d5 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb472593e3be6d10a7c13b.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md index a7d3fa3243f..159231582ac 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb480723790d6d727b8ef5.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md index 9670a73667e..563a4aac446 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb48e36c9ad56dd7a523f4.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md index 0018a562055..e37e6f3b2a1 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4978631a4f6e3e1b964d.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md index 0ce95df6e47..20c33f118d6 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4e676c156f7332f40db7.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md index c234fab590a..c21012035b4 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb4ebdc75b3a73a43da5ec.md @@ -235,8 +235,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md index e7d0bcc8368..6bc57e539d8 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb50fd95831a745ea60d13.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md index 70049096d2f..ea4f6508cf9 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb522509ffb274daf9fd9e.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md index 9be2ae413ae..571cb8dcef7 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb583dadb33a77595797bd.md @@ -226,8 +226,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md index 22837a42bd2..87afb1923fd 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cb5d1d48532b79b4e7ef6c.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md index 0b8887c8e15..8a464445d6d 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/6507512fe521de40085b8831.md @@ -207,8 +207,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md index 62475980c47..8e486ec6887 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650755908a8071409ab9e09e.md @@ -209,8 +209,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md index 3adcdd83639..3af98900be9 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650756e20cffbe41305a0dde.md @@ -223,8 +223,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md index 29476a22fbc..08ccd4351a1 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/650757918a9e97418dc3d71a.md @@ -219,8 +219,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } @@ -648,8 +648,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md index 603000dca89..0ed468a9a4e 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b006efc74c675c2bdfccba.md @@ -9,7 +9,7 @@ dashedName: step-33 For the last condition, you will need to check if the player's `x` position has exceeded the right edge of the canvas. If it has, you will need to set the player's `x` position to the maximum value so the player does not accidentally go off screen to the right. -Inside your `update` method, create an `if` statement that checks if `this.position.x >= canvas.width - 2 * this.width`. +Inside your `update` method, create an `if` statement that checks if `this.position.x >= canvas.width - this.width * 2`. # --hints-- @@ -19,10 +19,10 @@ You should have an `if` statement inside your `update` method. assert.match(code, /if\s*\(\s*.*\s*\)\s*{/g); ``` -Your `if` statement should check if `this.position.x >= canvas.width - 2 * this.width`. +Your `if` statement should check if `this.position.x >= canvas.width - this.width * 2`. ```js -assert.match(code, /if\s*\(\s*this\.position\.x\s*>=\s*canvas\.width\s*-\s*2\s*\*\s*this\.width\s*\)\s*{/gi); +assert.match(code, /if\s*\(\s*this\.position\.x\s*>=\s*canvas\.width\s*-\s*this\.width\s*\*\s*2\s*\)\s*{/gi); ``` # --seed-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md index e5d338ae008..c4c28091be6 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b00a6f1c429c5e9fa50e90.md @@ -7,16 +7,16 @@ dashedName: step-34 # --description-- -Inside your `if` statement, assign `canvas.width - 2 * this.width` to `this.position.x`. +Inside your `if` statement, assign `canvas.width - this.width * 2` to `this.position.x`. This will ensure that the player's `x` position will never exceed the right edge of the canvas. # --hints-- -You should assign `canvas.width - 2 * this.width` to `this.position.x` inside your `if` statement. +You should assign `canvas.width - this.width * 2` to `this.position.x` inside your `if` statement. ```js -assert.match(code, /this\.position\.x\s*=\s*canvas\.width\s*-\s*2\s*\*\s*this\.width;?/g); +assert.match(code, /this\.position\.x\s*=\s*canvas\.width\s*-\s*this\.width\s*\*\s*2\s*;?/g); ``` # --seed-- @@ -209,7 +209,7 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { + if (this.position.x >= canvas.width - this.width * 2) { --fcc-editable-region-- --fcc-editable-region-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md index c361daf400b..5edb7b6b491 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2a465d7ca3ab6e902285b.md @@ -215,8 +215,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md index d4c7501bbfe..f0b1bfa32ef 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/65b2bb4c279af3cd585ba777.md @@ -217,8 +217,8 @@ class Player { this.position.x = this.width; } - if (this.position.x >= canvas.width - 2 * this.width) { - this.position.x = canvas.width - 2 * this.width; + if (this.position.x >= canvas.width - this.width * 2) { + this.position.x = canvas.width - this.width * 2; } } }