pitchcar 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/track.rb +0 -2
- data/pitchcar.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5f5c37fc4a533632f0e39a34ef5502c79e1c39a
|
4
|
+
data.tar.gz: 432a9bfcae72fcdfd32e9b14856014e9483cfa6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: affb127b26f41b5ca59af3108e300c8008e3e84b276abbdd45b6bb204a6bc906554c98d9b184e5638bbe3a4eb8b440cf443a0cc8832cf0fd38fd87fafb09d7f2
|
7
|
+
data.tar.gz: 6c0b14e9bd330cd62d5448afc0ea4da949eaadc77ac0aa1cb2b9a1dd417d4faa1d2af9791a30f104f3f1ca9a52cdfbbfdb73c636d7e88486799e20b4a1149ea8
|
data/Gemfile.lock
CHANGED
data/lib/track.rb
CHANGED
@@ -68,7 +68,6 @@ module Pitchcar
|
|
68
68
|
def overlaps?
|
69
69
|
@overlaps ||= pieces.group_by { |piece| [piece.x, piece.y] }.values.any? { |set| set.size > 1 }
|
70
70
|
end
|
71
|
-
require 'pry'
|
72
71
|
|
73
72
|
def with_wall_combinations(pieces = PieceList.new(self.pieces)[1..-1], combinations = [])
|
74
73
|
straight_index = pieces.find_index { |piece| piece.type == Piece::TYPES[:STRAIGHT] }
|
@@ -84,7 +83,6 @@ module Pitchcar
|
|
84
83
|
track = Track.new([self.pieces.first] + pieces)
|
85
84
|
track.pieces.first.type = Piece::TYPES[:STRAIGHT_RIGHT_WALL]
|
86
85
|
random_right_wall = track.pieces.each_index.select do |index|
|
87
|
-
puts track.pieces[index].type
|
88
86
|
track.pieces[index].type == Piece::TYPES[:STRAIGHT_RIGHT_WALL]
|
89
87
|
end.sample
|
90
88
|
track.pieces[random_right_wall].type = Piece::TYPES[:STRAIGHT_START]
|
data/pitchcar.gemspec
CHANGED