<<

4. PENGGUNAAN DAN PENGUJIAN PROGRAM

Pada bab ini akan dijelaskan cara pemakaian program aplikasi beserta gambar-gambar form dalam aplikasi seperti form utama, form select side, form player, form strategi saat memilih pemain, form strategi saat proses dan form editor pemain. Program aplikasi ini dibuat dengan menggunakan bahasa pemrograman Delphi 5.0. Berikut ini akan dijelaskan langkah-langkah dalam menjalankan program aplikasi ini.

4.1. Form Dalam setiap aplikasi Delphi, diperlukan adanya form sebagai intinya. Form dapat dianggap sebuah window. Delphi memberikan sebuah form pada setiap project dan menampilkan sebuah form kosong saat Delphi dimulai. Untuk menambahkan form, dapat dipilih option pada menu file kemudian pilih option new form.

4.1.1. Form Utama Form ini adalah form yang pertama muncul saat program dijalankan. Saat form muncul, ditampilkan sebuah movie basket yang dapat diputar secara terus-menerus jika user tidak memilih tombol-tombol pada form ini. Pada form utama ini terdapat beberapa tombol yang dapat dipilih oleh user, antara lain : - One Player - Two Player - Editor - About - Close Tombol One Player digunakan untuk memulai permainan dengan satu orang pemain saja. Tombol Two Player digunakan untuk memulai permainan dengan dua orang pemain. Tombol Editor digunakan untuk masuk form editor jika user ingin menambahkan, merubah data statistik atau menghapus pemain bola basket

53 54

pada database. Tombol About digunakan untuk membuka form side2 yang berisi tentang latar belakang program. Tombol Close digunakan untuk keluar dari permainan.

Gambar 4.1. Form Utama

4.1.2. Form Select Side Form ini digunakan saat bermain satu orang saja, user dapat memilih untuk bermain sebagai team yang dipilihnya. Pada form ini terdapat beberapa tombol yang dapat dipilih oleh user, yaitu : - East - West - Close Tombol East digunakan untuk bermain sebagai Eastern Allstar. Tombol West digunakan untuk bermain sebagai Western Allstar. Tombol Close digunakan untuk kembali ke menu sebelumnya.

55

Gambar 4.2. Form Select Side

4.1.3. Form Player Form ini digunakan untuk memilih pemain yang akan dibawa pada pertandingan sesuai team yang telah dipilihnya. Agar lebih mudah sudah disediakan default pemain yang dipakai pada saat pertandingan Allstar berlangsung, tetapi user masih dapat memilih pemain sesuai keinginannya. Pada form ini terdapat beberapa tombol yang dapat dipilih oleh user, yaitu : - Navigator (Prior dan Next) - Switch - Play Tombol Navigator (Prior dan Next) digunakan untuk memilih data pemain sesuai team yang telah dipilihnya. Tombol Switch digunakan untuk menukar pemain dari database (sebelah kiri) yang disediakan ke dalam listbox di sebelah kanan dengan catatan pemain yang dipilih tersebut masih belum berada dalam daftar. Tombol Play digunakan untuk memulai permainan .

56

Gambar 4.3. Form Player

4.1.4. Form Strategi Saat Memilih Pemain Form ini digunakan untuk memilih pemain yang akan dimainkan pada pertandingan sesuai daftar pemain yang telah dipilih sebelumnya di form player.. Pada form ini terdapat beberapa tombol yang dapat dipilih oleh user, tombol tersebut antara lain : - Continue - Label Nama (dalam gambar contoh Dikembe Mutombo, , Antoine Walker dan seterusnya) - Label Posisi (dalam gambar contoh Power Forward, Center, Shooting Forward dan seterusnya). Tombol Continue digunakan untuk masuk ke dalam pertandingan setelah user memilih pemain yang akan diturunkan. Tombol Label Nama digunakan untuk memilih pemain dari daftar (sebelah kanan) yang disediakan, secara otomatis cursor akan berubah bentuk menjadi gambar tangan. Setelah itu user dapat menempatkannya ke Label Posisi pada gambar lapangan (sebelah kiri).

57

Gambar 4.4. Form Strategi Saat Memilih

4.1.5. Form Strategi Saat Proses Form ini digunakan setelah pemain selesai ditempatkan pada posisinya masing-masing. Pada form ini terdapat beberapa tombol yang dapat dipilih oleh user, yaitu : - Stop - Team1 - Proses - Combobox Speed - Combobox Stop - Testing, Score - Exit Tombol East digunakan untuk bermain sebagai Eastern Allstar. Tombol Stop digunakan untuk menghentikan proses. Tombol Team1 digunakan untuk kembali ke proses menempatkan pemain. Tombol Proses digunakan untuk memulai pertandingan. Combobox Speed digunakan untuk mengatur kecepatan dari proses pertandingan. Combobox Stop Point digunakan untuk menghentikan proses sesuai

58

dengan pilihan user. Tombol testing digunakan untuk menampilkan laporan yang didapat dari proses pertandingan. Tombol Score digunakan untuk melihat perolehan angka tiap-tiap pemain dari proses pertandingan. Tombol Exit digunakan untuk keluar dari permainan.

Gambar 4.5. Form Strategi Saat Proses

4.1.6. Form Editor Form ini digunakan untuk menambahkan, memodifikasi dan menghapus pemain. Pada form ini terdapat beberapa tombol yang dapat dipilih oleh user, yaitu Navigator (Prior, Next, Insert, Delete, Edit, Post dan Cancel). Tombol Navigator (Prior dan Next) digunakan untuk memilih data pemain sesuai team yang telah dipilihnya. Tombol Insert digunakan untuk menambahkan pemain baru ke dalam database. Tombol Delete digunakan untuk menghapus pemain. Tombol Edit digunakan untuk mengedit pemain. Tombol Post digunakan sebagai konfirmasi apabila ada perubahan database pemain. Tombol Cancel digunakan untuk membatalkan input data setelah ada perubahan data pemain pada database.

59

Form editor terbagi dalam editor data dan editor statistik, gambar 4.6 adalah gambar form editor data

Gambar 4.6. Form Editor Data Pemain User dapat mengubah statistik pemain pada bagian editor statistik. Gambar 4.7 adalah gambar form editor statistik

Gambar 4.7. Form Editor Statistik Pemain

60

4.2. Pengujian Pada bagian ini akan dilakukan pengujian pada program dengan menempatkan pemain lalu menjalankan proses sehingga diperoleh hasil dari pertandingan.

4.2.1. Penempatan Pemain Pengujian dilakukan dengan memilih permainan satu orang sebagai Eastern Allstar, pemain yang dibawa menggunakan daftar (default) yang tersedia dan menempatkan pemain seperti ini, Antoine Walker sebagai Power Forward, Vince Carter sebagai Shooting Forward, Dikembe Mutombo sebagai Center, sebagai , sebagai

Gambar 4.8. Posisi Pemain Data kondisi pemain pada saat pengujian berlangsung

Tabel 4.1. Tabel Kondisi Nama Pemain Stamina Foul Dikembe Mutombo 96 0 Vince Carter 95 0 Antoine Walker 94 0 Allen Iverson 99 0 Michael Jordan 93 0 99 0

61

Shareef Abdur-rahim 97 0 94 0 100 0 Tracy McGrady 90 0 90 0 Jermaine ONeal 90 0 96 0

4.2.2. Laporan Pertandingan Setelah penempatan pemain selesai maka proses dijalankan dengan kecepatan fastest dan stop point none. Tombol Testing dan Tombol Score diaktifkan sehingga pertandingan dapat dijalankan. Proses dijalankan tanpa mengganti pemain sampai pertandingan selesai seperti pada gambar di bawah ini.

Gambar 4.9. Hasil Pertandingan Maka setelah pertandingan selesai didapat hasil sebagai berikut. Laporan yang dicantumkan di bawah dibatasi pada babak pertama saja.

62

Referee throw a jump ball Dikembe Mutombo win the first ball C1 Antoine Walker get the ball PF1 Antoine Walker looking for a chance PF1 Antoine Walker do a great drive PF1 Antoine Walker try to pass the ball PF1 Antoine Walker give a good pass PF1 Vince Carter get the ball SF1 Vince Carter looking for the three SF1 Vince Carter fail to score SF1 Kevin Garnett foul Vince Carter Vince Carter ready for freethrow SF1 Miss it Get 1 point Get 1 point He score Kevin Garnett do throwin SF2 Kevin Garnett try to pass the ball SF2 Kevin Garnett give a good pass SF2 get the ball SG2 Kobe Bryant try to pass the ball SG2 Enemy try to get the ball Michael Jordan do turnover SG1 Michael Jordan try to score SG1 Great dunk He score Kobe Bryant do throwin SG2 Kobe Bryant try to pass the ball SG2 Kobe Bryant give a good pass SG2 get the ball PF2 Tim Duncan looking for a chance PF2 Enemy try to get the ball Antoine Walker do turnover PF1 Antoine Walker looking for a chance PF1 Antoine Walker do a great drive PF1 Antoine Walker try to score PF1 Antoine Walker fail to score PF1 Chance for Shaquille ONeal win the rebound C2 Shaquille ONeal try to pass the ball C2 Enemy try to get the ball Dikembe Mutombo foul Shaquille ONeal Shaquille ONeal do throwin C2 Shaquille ONeal try to pass the ball C2 Shaquille ONeal give a good pass C2 Kobe Bryant get the ball SG2 Kobe Bryant try to pass the ball SG2 Kobe Bryant give a good pass SG2 Shaquille ONeal get the ball C2 Shaquille ONeal try to pass the ball C2 Shaquille ONeal give a good pass C2 Kobe Bryant get the ball SG2 Kobe Bryant try to score SG2 Kobe Bryant fail to score SG2 Michael Jordan the ball SG1 Antoine Walker get the ball PF1 Antoine Walker looking for a chance PF1 Enemy try to get the ball Tim Duncan the ball PF2

63

Tim Duncan try to pass the ball PF2 Enemy try to get the ball Antoine Walker do turnover PF1 Antoine Walker try to pass the ball PF1 Antoine Walker give a good pass PF1 Dikembe Mutombo get the ball C1 Dikembe Mutombo try to score C1 Great dunk He score Shaquille ONeal do throwin C2 Shaquille ONeal try to pass the ball C2 Enemy try to get the ball Dikembe Mutombo do turnover C1 Dikembe Mutombo try to pass the ball C1 Dikembe Mutombo give a good pass C1 Vince Carter get the ball SF1 Vince Carter try to pass the ball SF1 Vince Carter give a good pass SF1 Antoine Walker get the ball PF1 Antoine Walker try to score PF1 Great dunk He score Tim Duncan do throwin PF2 Tim Duncan try to pass the ball PF2 Enemy try to get the ball Antoine Walker do turnover PF1 Antoine Walker try to score PF1 Great shoot He score Tim Duncan do throwin PF2 Tim Duncan try to pass the ball PF2 Enemy try to get the ball Antoine Walker do turnover PF1 Antoine Walker try to score PF1 Great shoot He score Tim Duncan do throwin PF2 Tim Duncan try to pass the ball PF2 Tim Duncan give a good pass PF2 Kobe Bryant get the ball SG2 Kobe Bryant looking for the three SG2 Great shoot He score Michael Jordan do throwin SG1 Michael Jordan try to pass the ball SG1 Michael Jordan give a good pass SG1 Allen Iverson get the ball PG1 Allen Iverson try to pass the ball PG1 Allen Iverson give a good pass PG1 Dikembe Mutombo get the ball C1 Dikembe Mutombo looking for a chance C1 Dikembe Mutombo do a great drive C1 Dikembe Mutombo looking for a chance C1 Enemy try to get the ball Shaquille ONeal steal the ball C2 Shaquille ONeal try to pass the ball C2 Shaquille ONeal give a good pass C2 Kobe Bryant get the ball SG2 Kobe Bryant try to pass the ball SG2

64

Kobe Bryant give a good pass SG2 Tim Duncan get the ball PF2 Tim Duncan try to score PF2 Great shoot He score Antoine Walker do throwin PF1 Antoine Walker try to pass the ball PF1 Antoine Walker give a good pass PF1 Michael Jordan get the ball SG1 Michael Jordan looking for the three SG1 Great shoot He score Kobe Bryant do throwin SG2 Kobe Bryant try to pass the ball SG2 Kobe Bryant give a good pass SG2 Kevin Garnett get the ball SF2 Kevin Garnett try to pass the ball SF2 Kevin Garnett give a good pass SF2 Tim Duncan get the ball PF2 Tim Duncan looking for the three PF2 Great shoot He score Antoine Walker do throwin PF1 Antoine Walker try to pass the ball PF1 Antoine Walker give a good pass PF1 Michael Jordan get the ball SG1 Michael Jordan looking for the three SG1 Michael Jordan fail to score SG1 Chance for rebound Steve Francis win the rebound PG2 Steve Francis try to pass the ball PG2 Steve Francis give a good pass PG2 Kevin Garnett get the ball SF2 Kevin Garnett try to pass the ball SF2 Kevin Garnett give a good pass SF2 Tim Duncan get the ball PF2 Tim Duncan looking for the three PF2 Great shoot He score Antoine Walker do throwin PF1 Antoine Walker try to pass the ball PF1 Antoine Walker give a good pass PF1 Vince Carter get the ball SF1 Vince Carter try to score SF1 Vince Carter fail to score SF1 Kevin Garnett block the ball SF2 Kobe Bryant get the ball SG2 Kobe Bryant try to pass the ball SG2 Kobe Bryant give a good pass SG2 Shaquille ONeal get the ball C2 Shaquille ONeal try to pass the ball C2 Shaquille ONeal give a good pass C2 Kevin Garnett get the ball SF2 Kevin Garnett looking for a chance SF2 Kevin Garnett do a great drive SF2 Kevin Garnett try to pass the ball SF2 Kevin Garnett give a good pass SF2 Kobe Bryant get the ball SG2 Kobe Bryant try to score SG2

65

Kobe Bryant fail to score SG2 Michael Jordan block the ball SG1 Allen Iverson get the ball PG1 Allen Iverson looking for a chance PG1 Allen Iverson do a great drive PG1 Allen Iverson try to pass the ball PG1 Allen Iverson give a good pass PG1 Antoine Walker get the ball PF1 Antoine Walker try to score PF1 Antoine Walker fail to score PF1 Tim Duncan block the ball PF2 Antoine Walker do throwin PF1 Antoine Walker try to pass the ball PF1 Antoine Walker give a good pass PF1 Michael Jordan get the ball SG1 Michael Jordan try to pass the ball SG1 Michael Jordan give a good pass SG1 Allen Iverson get the ball PG1 Allen Iverson try to pass the ball PG1 Allen Iverson give a good pass PG1 Dikembe Mutombo get the ball C1 Dikembe Mutombo try to pass the ball C1 Dikembe Mutombo give a good pass C1 Michael Jordan get the ball SG1 Michael Jordan try to score SG1 Michael Jordan fail to score SG1 He foul and score Kobe Bryant foul Michael Jordan Michael Jordan ready for freethrow SG1 Miss it Chance for rebound Steve Francis win the rebound PG2 Steve Francis try to score PG2 Great dunk He score Allen Iverson do throwin PG1 Allen Iverson try to pass the ball PG1 Allen Iverson give a good pass PG1 Dikembe Mutombo get the ball C1 Dikembe Mutombo looking for a chance C1 Enemy try to get the ball Shaquille ONeal steal the ball C2 Shaquille ONeal looking for a chance C2 Shaquille ONeal do a great drive C2 Shaquille ONeal looking for a chance C2 Shaquille ONeal do a great drive C2 Shaquille ONeal try to pass the ball C2 Shaquille ONeal give a good pass C2 Steve Francis get the ball PG2 Steve Francis looking for a chance PG2 Steve Francis do a great drive PG2 Steve Francis try to pass the ball PG2 Steve Francis give a good pass PG2 Tim Duncan get the ball PF2 Tim Duncan looking for the three PF2 Great shoot He score

66

4.2.3. Hasil Testing Passing Dalam pengujian salah satu peristiwa yang terjadi dalam pertandingan (dipilih proses passing karena perhitungannya sederhana dan lebih mudah menampakkan pengaruh dari staminanya) pada salah satu pemain (dipilih Michael Jordan karena kemampuannya yang hebat dan sudah terkenal) diperoleh laporan sebagai berikut.

283 random:17 batas:79 stamina:87 Sukses 399 random:28 batas:78 stamina:86 Sukses 714 random:25 batas:79 stamina:87 Sukses 62 random:36 batas:77 stamina:85 Sukses 499 random:74 batas:72 stamina:80 Gagal 700 random:4 batas:73 stamina:81 Sukses 715 random:99 batas:72 stamina:80 Gagal 1 random:34 batas:69 stamina:77 Sukses 60 random:86 batas:67 stamina:75 Gagal 69 random:27 batas:65 stamina:73 Sukses 183 random:44 batas:61 stamina:69 Sukses 305 random:7 batas:59 stamina:67 Sukses 367 random:26 batas:57 stamina:65 Sukses 597 random:47 batas:56 stamina:64 Sukses 106 random:94 batas:53 stamina:61 Gagal 142 random:51 batas:52 stamina:60 Sukses 192 random:16 batas:50 stamina:58 Sukses 436 random:67 batas:51 stamina:59 Gagal 457 random:63 batas:48 stamina:56 Gagal 481 random:88 batas:46 stamina:54 Gagal 495 random:48 batas:43 stamina:51 Gagal