Find Jobs
Hire Freelancers

life

$30-50 USD

完了済み
投稿日: 約20年前

$30-50 USD

完了時にお支払い
Write a program to simulate life. The world is a rectangular grid of cells, each of which may contain an organism. Each cell has eight neighbors, like so: 1 2 3 4 * 5 (the numbers are for illustration purposes only) 6 7 8 The world is initially created by the user with some organisms at various cells. The user specifies the cells that are initially "alive". Then successive generations are obtained by two rules: 1) an organism in a cell survives to the next generation if exactly 2 or 3 of its neighbors are living, otherwise it dies 2) an organism is born into an unoccupied cell if exactly 3 of its neighbors are occupied. Display the generations under user command until the user grows weary of this world. Method: The world will be represented by a 2-dimensional array (which may not be a global variable). 20 by 20 is a good enough size. Each element of the array will represent a cell that has a living organism in it or is dead. A new generation is generated by examining each cell and creating its next state (living or dead) simultaneously with all the other cells, thus the next generation must be created into a copy of the world. To simplify the code, the "perimeter" of the world can always be dead cells. You must have some functions, say one to get the user's coordinates, one to display the "world", one to count the number of living neighbors of a cell, and one to generate the next generation. Example: User specifies some valid coordinates for organisms to be created in, then (only a portion of the "world" is displayed here, to save space. The line is in the same place in the world): _____________ * * * * Created world configuration. *** ____________ this blank line below the line is significant. ** ** * * Next generation * _____________ ** ** Next generation ** ** * _____________ ** ** Next generation * * *** _____________ ** ** Next generation * * *** * ______________ ** ** * * Next generation *** *** ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Deliverables must be in ready-to-run condition, as follows? (depending on the nature? of the deliverables): a)? For web sites or? other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment. b) For all others including desktop software or software the buyer intends to distribute: A software? installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request. 3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement). ## Platform needs to be in c++ only the code is needed
プロジェクト ID: 3125447

プロジェクトについて

37個の提案
リモートプロジェクト
アクティブ 20年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
アワード者:
ユーザーアバター
See private message.
$29.75 USD 3日以内
5.0 (64 レビュー)
5.5
5.5
この仕事に37人のフリーランサーが、平均$20 USDで入札しています
ユーザーアバター
See private message.
$17 USD 3日以内
4.9 (82 レビュー)
6.8
6.8
ユーザーアバター
See private message.
$34 USD 3日以内
5.0 (148 レビュー)
6.5
6.5
ユーザーアバター
See private message.
$12.75 USD 3日以内
5.0 (151 レビュー)
6.2
6.2
ユーザーアバター
See private message.
$25 USD 3日以内
5.0 (159 レビュー)
6.0
6.0
ユーザーアバター
See private message.
$8.50 USD 3日以内
5.0 (77 レビュー)
5.8
5.8
ユーザーアバター
See private message.
$21.25 USD 3日以内
4.9 (212 レビュー)
5.8
5.8
ユーザーアバター
See private message.
$34 USD 3日以内
4.9 (62 レビュー)
5.4
5.4
ユーザーアバター
See private message.
$42.50 USD 3日以内
5.0 (39 レビュー)
5.0
5.0
ユーザーアバター
See private message.
$28.90 USD 3日以内
5.0 (61 レビュー)
5.1
5.1
ユーザーアバター
See private message.
$8.50 USD 3日以内
5.0 (221 レビュー)
5.2
5.2
ユーザーアバター
See private message.
$15.30 USD 3日以内
4.9 (104 レビュー)
4.9
4.9
ユーザーアバター
See private message.
$11.05 USD 3日以内
4.9 (102 レビュー)
5.1
5.1
ユーザーアバター
See private message.
$16.15 USD 3日以内
5.0 (126 レビュー)
4.7
4.7
ユーザーアバター
See private message.
$25.50 USD 3日以内
5.0 (30 レビュー)
4.3
4.3
ユーザーアバター
See private message.
$29.75 USD 3日以内
4.9 (11 レビュー)
4.1
4.1
ユーザーアバター
See private message.
$5.10 USD 3日以内
4.9 (16 レビュー)
4.2
4.2
ユーザーアバター
See private message.
$16.15 USD 3日以内
4.9 (48 レビュー)
3.8
3.8
ユーザーアバター
See private message.
$8.50 USD 3日以内
5.0 (21 レビュー)
3.5
3.5
ユーザーアバター
See private message.
$17 USD 3日以内
4.6 (45 レビュー)
3.7
3.7
ユーザーアバター
See private message.
$8.50 USD 3日以内
5.0 (19 レビュー)
3.5
3.5

クライアントについて

UNITED STATESのフラグ
United States
5.0
2
メンバー登録日:4月 15, 2003

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。