Find Jobs
Hire Freelancers

jupyter notebook -- 2

$10-30 USD

ที่ทำเสร็จแล้ว
โพสต์ มากกว่า 6 ปีที่ผ่านมา

$10-30 USD

ชำระเงินเมื่อส่งงาน
# -*- coding: utf-8 -*- import zombies_aliens """ Test Data Set: No data set. This is a discrete event simulation. Usage: Game overview: 1) the game is played on a (x,y) grid 2) the game is played for t discrete units of time 3) at each time t 3a) each Alien checks to see of they are close to a Zombie 3b) if the Alien is close to a Zombie a battle ensues 3c) if the strength difference is great enough, the Alien kills the Zombie and the Alien gets stronger 3d) if the strength difference is not great enough, both the Alien and Zombie are wounded 3e) each Zombie checks to see if they are close to an Alien 3f) if the strength difference is great enough, the Zombie infects the Alien and the Zombie gets stronger 3g) The Alien dies and is reborn as a Zombie [NOTE: the Alien dies in the object instance code but rebirth must happen in this game code so that the new Zombie is added to the zombies list] 3h) if the strength difference is not great enough, both the Alien and Zombie are wounded 4) Zombies walk slowly because they are, well, zombies 5) Aliens can move fast. They can use their spaceships if you want them to. 6) The game ends when the maximum time is reached or only zombies or aliens remain. """ MAX_ZOMBIES = 3 MAX_ALIENS = 4 MAX_TIMESTEPS = 5 def isnear(a_zombie, an_alien): pass # create lists of game objects zombies = [] for i in range(MAX_ZOMBIES): [login to view URL]([login to view URL]()) aliens = [] for i in range(MAX_ALIENS): [login to view URL]([login to view URL]()) # checkout list of objects created print("Initial zombies and aliens") print(repr(zombies)) print(repr(aliens)) # this battle results in wounding print("\nAfter Wounding zombies and aliens") zombies[0].infect_alien(aliens[0]) print(repr(zombies)) print(repr(aliens)) print("\nSet the strength of Zombie[0] to be very low so it is killed") zombies[0].strength = 10 print(repr(zombies)) print("\n Alien[0] kills Zombie[0]:") aliens[0].kill_zombie(zombies[0]) if (zombies[0].remove == 1): del zombies[0] print(repr(zombies)) print("\n Zombie[1] infects Alien[1] and a new Zombie is created:") aliens[1].strength = 10 zombies[1].infect_alien(aliens[1]) if (aliens[1].remove == 1): # set the (x,y) of the new Zombie to be the same as # the alien that has been infected #[LEFT TO STUDENTS] currentx = aliens[1].cellx currenty = aliens[1].celly del aliens[1] [login to view URL]([login to view URL]()) print("\nAfter zombies and aliens interact") print(repr(zombies)) print(repr(aliens))
รหัสโปรเจกต์: 15583801

เกี่ยวกับโปรเจกต์

2 ข้อเสนอ
โปรเจกต์ระยะไกล
ใช้งานอยู่ 6 ปีที่ผ่านมา

กำลังมองหาการสร้างรายได้ใช่ไหม?

ประโยชน์ของการประมูลกับ Freelancer

กำหนดงบประมาณและกรอบเวลาของคุณ
รับเงินจากการงานของคุณ
อธิบายข้อเสนอของคุณในภาพรวม
ลงทะเบียนและเสนอราคาฟรี
หมอบหมายให้:
รูปอวาตาร์ของผู้ใช้
I am an experienced programmer in python and cab do this task for you. Relevant Skills and Experience I have 12 years of development experience in Python,ASP.net, C# and VB.net. I have worked on a similar task in c++ before and can do this in python as I have the expertise Proposed Milestones $25 USD - Project Completion Contact me so that we can further discuss this project.
$25 USD ใน 2 วัน
5.0 (2 รีวิว)
1.8
1.8

เกี่ยวกับลูกค้า

ปักธงของ UNITED STATES
Westminister, United States
5.0
13
ยืนยันวิธีการชำระเงินแล้ว
เป็นสมาชิกตั้งแต่ ก.ย. 26, 2017

การยืนยันลูกค้า

ขอบคุณ! เราได้ส่งลิงก์สำหรับเครดิตฟรีให้คุณทางอีเมลแล้ว
เกิดข้อผิดพลาดขณะส่งอีเมลของคุณ กรุณาลองอีกครั้ง
โลโก้ Freelancer Thailand / ภาษาไทย ช่วยเหลือและสนับสนุน FreelancerประเภทโปรเจคการประกวดFreelancerองค์กรแพ็กเกจสมาชิกโครงการ Freelancer ชั้นแนวหน้าการจัดการโปรเจคงานในพื้นที่Photo Anywhereหน้าจัดแสดงผลงานAPI สำหรับนักพัฒนาได้รับการยืนยันDesktop App เกี่ยวกับเกี่ยวกับเราวิธีใช้งานความปลอดภัยนักลงทุนแผนผังเว็บไซต์เรื่องราวข่าวออกสื่อทีมรางวัลข่าวประชาสัมพันธ์ร่วมงานกับเรา ข้อกำหนดนโยบายความเป็นส่วนตัวข้อกำหนดและเงื่อนไขนโยบายลิขสิทธิ์ข้อพึงปฏิบัติค่าธรรมเนียมและค่าบริการหุ้นส่วนEscrow.comLoadshiftWarrior Forum แอปโลโก้ Apple App Store โลโก้ Google Play
ไม่สามารถคัดลอกไปยังคลิปบอร์ดได้ โปรดลองอีกครั้งหลังปรับเปลี่ยนการอนุญาต
คัดลอกไปยังคลิปบอร์ดแล้ว
ผู้ใช้ที่ลงทะเบียน งานที่มีการโพสต์ทั้งหมด
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
กำลังโหลดตัวอย่าง
ได้รับอนุญาตสำหรับตำแหน่งทางภูมิศาสตร์
เซสชั่นการเข้าสู่ระบบของคุณหมดอายุและคุณได้ออกจากระบบแล้ว กรุณาเข้าสู่ระบบอีกครั้ง