Skip to content

Commit

Permalink
feat(files): added some files
Browse files Browse the repository at this point in the history
  • Loading branch information
Clement-Fernandes committed Apr 21, 2024
2 parents 4432a51 + cc76278 commit 8ec2ade
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 4 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,16 @@
<td><a href="https://github.com/Studio-17/Epitech-Subjects/tree/main/Semester-1/B-CPE-101/FinalStumper">FinalStumper</a></td>
</tr>
<tr>
<td rowspan="3"><a href="https://github.com/Studio-17/Epitech-Subjects/tree/main/Semester-1/B-CPE-110">B-CPE-110</a></td>
<td rowspan="3" >4 credits</td>
<td rowspan="4"><a href="https://github.com/Studio-17/Epitech-Subjects/tree/main/Semester-1/B-CPE-110">B-CPE-110</a></td>
<td rowspan="4" >4 credits</td>
<td><a href="https://github.com/Studio-17/Epitech-Subjects/tree/main/Semester-1/B-CPE-110/BSQ">BSQ</a></td>
</tr>
<tr>
<td><a href="https://github.com/Studio-17/Epitech-Subjects/tree/main/Semester-1/B-CPE-110/Pushswap">Pushswap</a></td>
</tr>
<tr>
<td><a href="https://github.com/Studio-17/Epitech-Subjects/tree/main/Semester-1/B-CPE-110/Organised">Organised</a></td>
</tr>
<tr>
<td><a href="https://github.com/Studio-17/Epitech-Subjects/tree/main/Semester-1/B-CPE-110/Antman">Antman</a></td>
</tr>
Expand Down Expand Up @@ -168,8 +171,8 @@
<td><a href="https://github.com/Studio-17/Epitech-Subjects/tree/main/Semester-2/B-AIA-200/Need4Stek">Need4Stek</a></td>
</tr>
<tr>
<td rowspan="3"><a href="https://github.com/Studio-17/Epitech-Subjects/tree/main/Semester-2/B-CPE-200">B-CPE-200</a></td>
<td rowspan="3" >5 credits</td>
<td rowspan="4"><a href="https://github.com/Studio-17/Epitech-Subjects/tree/main/Semester-2/B-CPE-200">B-CPE-200</a></td>
<td rowspan="4" >5 credits</td>
<td><a href="https://github.com/Studio-17/Epitech-Subjects/tree/main/Semester-2/B-CPE-200/Matchstick">Matchstick</a></td>
</tr>
<tr>
Expand All @@ -178,6 +181,9 @@
<tr>
<td><a href="https://github.com/Studio-17/Epitech-Subjects/tree/main/Semester-2/B-CPE-200/RobotFactory">Robot Factory</a></td>
</tr>
<tr>
<td><a href="https://github.com/Studio-17/Epitech-Subjects/tree/main/Semester-2/B-CPE-200/Amazed">Amazed</a></td>
</tr>
<tr>
<td rowspan="1"><a href="https://github.com/Studio-17/Epitech-Subjects/tree/main/Semester-2/B-CPE-201">B-CPE-201</a></td>
<td rowspan="1" >4 credits</td>
Expand Down
Binary file added Semester-1/B-CPE-110/Organised/Organized.pdf
Binary file not shown.
Binary file added Semester-2/B-CPE-200/Amazed/B-CPE-200_Amazed.pdf
Binary file not shown.
53 changes: 53 additions & 0 deletions Semester-2/B-CPE-200/Amazed/laby_gen.pl
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#!/usr/bin/perl -w


use strict;

# gmin.pl taille densite nb home name end name
if (scalar @ARGV < 3)
{
print "usage : laby_gen.pl size density nb_of_robots\nWhen size is the number of rooms and density the percentage of probability of connexions between rooms\n";
exit -1;
}

my $i = 0;
my $j = 0;

my $size = shift @ARGV;
my $density = int(shift @ARGV);
my $nb = int(shift @ARGV);

my $home = int(rand($size));
my $end = int(rand($size));
while ($end == $home)
{
my $end = int(rand($size));
}

print $nb . "\n";
while ($i < $size)
{
print "##start\n" if ($i == $home);
print "##end\n" if ($i == $end);
print $i;
print " " . int(rand(10 * $size));
print " " . int(rand(10 * $size));
print "\n";
$i++;
}

$i = 0;

while ($i < $size)
{
$j = 0;
while ($j < $size)
{
if ($density > int(rand(100)))
{
print $i . "-" . $j . "\n";
}
$j++;
}
$i++;
}

0 comments on commit 8ec2ade

Please sign in to comment.