Rabu, 02 Desember 2015

Identifikasi Sistem RLC dengan Sinyal PRBS dan Arduino


        1.         Tujuan
        Setelah melakukan praktikum ini mahasiswa diharapkan mampu:
    Ø  Mengeluarkan sinyal prbs dari Arduino dan memberikan sinyal prbs pada rangkaian RLC.
     Ø  Menguji metode ARX, ARMA, OE dan BJ didalam matlab.
     Ø  Mencari transfer fungsi dari kombinasi RLC yang dibuat secara teori.
     Ø  Membandingkan transfer fungsi RLC secara teori dan praktek.
2.  Dasar Teori

Selasa, 01 Desember 2015

Program Kreativitas Mahasiswa (PKM)

Program Kreativitas Mahasiswa (PKM) adalah suatu wadah yang dibentuk oleh Direktorat Jenderal Pendidikan Tinggi Kementerian Pendidikan dan Kebudayaan Republik Indonesia dalam memfasilitasi potensi yang dimiliki mahasiswa Indonesia untuk mengkaji, mengembangkan, dan menerapkan ilmu dan teknologi yang telah dipelajarinya di perkuliahan kepada masyarakat luas. Program ini merupakan penerus dari Program Karya Alternatif Mahasiswa yang dibentuk pada tahun 1997, yang lalu berganti menjadi Program Kreativitas Mahasiswa tahun 2001 demi memperluas cakupan dan mengurangi batasan bagi mahasiswa dalam berkreasi. Pada awalnya, PKM memiliki lima sub program, yaitu PKM-Penelitian (PKMP), PKM-Penerapan Teknologi (PKM-T), PKM-Kewirausahaan (PKM-K), PKM-Pengabdian kepada Masyarakat (PKM-M) dan PKM-Penulisan Artikel Ilmiah (PKM-I). Finalis dari masing-masing PKM akan dilombakan dalam Pekan Ilmiah Nasional.

Dalam ajang ini Penulis telah mengirimkan beberapa proposal PKM, namun baru satu yang lolos yaitu PKM bidang Teknologi tentang Pembakar Sate Otomatis atau PETE MEGAMEN bahasa gaulnya untuk anggaran dana tahun 2015. Dengan adanya dana PKM ini penulis bisa membuat alat yang telah diajukan dalam proposal, alatnya sudah berhasil namun belum bisa di pasarkan atau di produksi lebih jauh karna masih ada kekurangan dalam sistem.
Untuk Informasi PKM silahkan klik dibawah ini dan panduan PKM silahkan download di mbah google, ada kok dikasih kalau kita minta.

Dibawah ini penulis berikan beberapa proposal yang telah dibuat, namun hanya PKM bidang Teknologi yang lolos.


Karya Tulis Ilmiah Nasional Bidik Misi 2014

Lomba Karya Tulis Ilmiah ini diadakan oleh Universitas Jember untuk anak Bidik Misi. Dalam kesempatan kali ini kami mencoba untuk menyalurkan ide. Namun Belum Berhasil masuk 10 finalis terbaik.





Lomba Essay Ideas Summit 2015


Indonesia Studentpreneur (IDEAS) Summit adalah salah satu kegiatan dari rangkaian acara The 9th Management’s Events, sebuah acara tahunan terbesar yang diadakan oleh Ikatan Keluarga Mahasiswa Manajemen Fakultas Ekonomika dan Bisnis Universitas Gadjah Mada bekerja sama dengan Jurusan Manajemen FEB UGM.
Acara ini terselenggara dengan tujuan mengumpulkan mahasiswa S1/D3  untuk berkontribusi terhadap pembangunan Indonesia dalam manajemen bisnis dan industri, melalui konferensi tingkat nasional, sehubungan dengan banyaknya peminat bisnis di kalangan remaja dari berbagai latar belakang ilmu, acara ini membuka peluang bagi peserta dari berbagai program studi.
Dalam konferensi ini, peserta membentuk tim yang beranggotakan tiga orang. Tim diminta untuk mengemukakan potensi wisata atau industri kreatif yang berada di provinsi asal universitas dengan menjawab pertanyaan essay di dalam formulir pendaftaran. Setelah melengkapi dan mengirimkan berkas registrasi, bagi tim yang memenuhi aspek penilaian dan persyaratan akan menerima email konfirmasi yang menyatakan peserta berhak mengikuti rangkaian IDEAS Summit 2015 di kota Yogyakarta.
Selanjutnya ide yang sebelumnya dituangkan di dalam essay, wajib disiapkan peserta tim ke dalam bentuk presentasi yang akan dipaparkan dalam rangkaian acara IDEAS Summit. Pada akhirnya, acara ini mengharapkan keaktifan peserta sehingga terwujudnya sebuah konferensi yang dinamis. Oleh karena itu, IDEAS Summit memberi penghargaan yang terdiri atas tiga kategori yaitu Best Project Presentation untuk tim, serta Best Speaker dan Friendship Ambassador untuk individual.
Tema acara yang akan berlangsung adalah: “Promoting local tourism and creative industry through Academic-Business-Government perspective ”.

Dalam acara ini penulis bersama yoga dan ade mencoba untuk memperkenalkan pariwisata dan industri kreaktif yang bisa di kembangkan di Pulau Abang Kepulauan Riau untuk membawa Indonesia lebih baik lagi kedepannya. Namun dalam ajang ini penulis belum diberikan kesempatan untuk masuk 20 finalis final. Meskipun begitu kita tetap bersyukur, berdoa dan berusaha. Untuk Informasi lebih lanjut tentang lomba ini silahkan klik icon ideas summit dibawah ini

Dibawah ini adalah hasil Essay yang telah dibuat penulis



Paper IEEE Electronics Design Contest 2015


IEEE EDC is an electronics design competition that held by IEEE SSCS Indonesia Chapter. The purpose is to push and accelerate the development of human resources in electronics that are ready to be used by related industries. The target of this competition are:
  • To push the growth of creativity and innovation in electronics.
  • To implement the knowledge and sciences on product development.
  • To study the state of the art of the technology.
There are two topics:
  1. VLSI Design: Sound-Source Seeker
  2. Embedded System: Smart Phone Docking System
Dalam hal ini penulis dan Asti Budianto mengikuti bidang Embedded System dibawah bimbingan dosen pak Rifqi Amalya Fatekha. Alhamdulillah kami diberikan kesempatan untuk lolos dan berkompetisi dengan 4 finalis lainnya dari universitas lain di Institut Teknologi Bandung tanggal 15 Desember 2015.

Untuk Informasi Lomba silahkan

Dibawah ini adalah desain paper yang telah dibuat penulis

Selasa, 06 Mei 2014

Membuat Program Game Tic Tac Toe dengan C#


Assalamualikum wr.wb
Dalam kesempatan kali ini kita akan membuat sebuah game sederhana, mungkin bagi pembaca blog ini sudah tidak asing lagi yang namanya game Tic Tac Toe.
oke, game ini kita buat menggunakan visual studio 2012.
Pertama kita buka software visual studio 2012

Kemudian kita klik new project dua kali


Jika sudah masuk ke new project, pilih windows form application, berikan judul sesuai keinginan anda lalu tekan tombil oke


Buatlah tampilan game tic tac toe sederhana form 1, ambil objek yang kita butuhkan di toolbox seperti label, pictureBox, textBox dan button jika tidak muncul klik view lalu toolbox dan seandainya anda ingin mengubah atau mengatur tampilan objek, edit di propertise yang ada di kanan bawah.





Setelah kita edit di propertise hasilnya akan seperti ini, tergantung dari selera programmer.






Lalu kita buat programnya.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Game_TicTacToe
{
    public partial class Form1 : Form
    {
        int play = 0;
        int p1 = 0, p2 = 0, p3 = 0, p4 = 0, p5 = 0, p6 = 0, p7 = 0, p8 = 0, p9 = 0;          // kondisi awal semua pictureBox
        int input;

        public Form1()
        {
            InitializeComponent();
        }

      



// program untuk komputer yang susah dikalahkan       
void com_expert(int masukan)
        {
            if (masukan == 5)                    // ketika player memilih pictureBox 5
            {
                if (p2 == 0)              // akan di tahan di pictureBox 2
                {
                    if (play == 1)
                    {
                        pictureBox2.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p2 = 2;             //tampilan sesuai pilihan
                    }

                    else
                    {
                        pictureBox2.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p2 = 1;
                    }
                }

                else if (p1 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox1.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p1 = 2;
                    }

                    else
                    {
                        pictureBox1.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p1 = 1;
                    }
                }

                else if (p3 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox3.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p3 = 2;
                    }

                    else
                    {
                        pictureBox3.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p3 = 1;
                    }
                }

                else if (p4 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox4.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p4 = 2;
                    }

                    else
                    {
                        pictureBox4.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p4 = 1;
                    }
                }

                else if (p6 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox6.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p6 = 2;
                    }

                    else
                    {
                        pictureBox6.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p6 = 1;
                    }
                }

                else if (p7 == 0 && p3 == 1 && p5 == 1)
                {
                    if (play == 1)
                    {
                        pictureBox7.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p7 = 2;
                    }

                    else
                    {
                        pictureBox7.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p7 = 1;
                    }
                }

                else if (p8 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox8.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p8 = 2;
                    }

                    else
                    {
                        pictureBox8.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p8 = 1;
                    }
                }

                else if (p9 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox9.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p9 = 2;
                    }

                    else
                    {
                        pictureBox9.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p9 = 1;
                    }
                }
            }

            if (masukan == 1)
            {
                if (p2 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox2.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p2 = 2;
                    }

                    else
                    {
                        pictureBox2.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                       p2 = 1;
                    }
                }
               
            }

           
            if (masukan == 2)
            {
                if (p1 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox1.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p1 = 2;
                    }

                    else
                    {
                        pictureBox1.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p1 = 1;
                    }
                }

                else if (p3 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox3.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p3 = 2;
                    }

                    else
                    {
                        pictureBox3.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p3 = 1;
                    }
                }


                else if (p5 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox5.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p5 = 2;
                    }

                    else
                    {
                        pictureBox5.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p5 = 1;
                    }
                }

                else if (p8 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox8.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p8 = 2;
                    }

                    else
                    {
                        pictureBox8.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p8 = 1;
                    }
                }
            }

            if (masukan == 3)
            {
                if (p2 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox2.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p2 = 2;
                    }

                    else
                    {
                        pictureBox2.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                      p2 = 1;
                    }
                }

                else if (p1 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox1.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p1 = 2;
                    }

                    else
                    {
                        pictureBox1.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p1 = 1;
                    }
                }

                else if (p6 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox6.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p6 = 2;
                    }

                    else
                    {
                        pictureBox6.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p6 = 1;
                    }
                }

                else if (p5 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox5.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p5 = 2;
                    }

                    else
                    {
                        pictureBox5.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p5 = 1;
                    }
                }

                else if (p7 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox7.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p7 = 2;
                    }

                    else
                    {
                        pictureBox7.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p7 = 1;
                    }
                }

                else if (p9 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox9.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p9 = 2;
                    }

                    else
                    {
                        pictureBox9.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p9 = 1;
                    }
                }
            }

            if (masukan == 4)
            {
                if (p1 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox1.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p1 = 2;
                    }

                    else
                    {
                        pictureBox1.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p1 = 1;
                    }
                }

                else if (p5 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox5.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p5 = 2;
                    }

                    else
                    {
                        pictureBox5.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p5 = 1;
                    }
                }

                else if (p6 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox6.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p6 = 2;
                    }

                    else
                    {
                        pictureBox6.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p6 = 1;
                    }
                }

                else if (p7 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox7.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p7 = 2;
                    }

                    else
                    {
                        pictureBox7.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p7 = 1;
                    }
                }
            }

            if (masukan == 6)
            {
                if (p3 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox3.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p3 = 2;
                    }

                    else
                    {
                        pictureBox3.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p3 = 1;
                    }
                }
                else if (p9 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox9.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p9 = 2;
                    }

                    else
                    {
                        pictureBox9.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p9 = 1;
                    }
                }
                else if (p4 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox4.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p4 = 2;
                    }

                    else
                    {
                        pictureBox4.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p4 = 1;
                    }
                }
                else if (p5 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox5.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p5 = 2;
                    }

                    else
                    {
                        pictureBox5.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p5 = 1;
                    }
                }
            }

            if (masukan == 7)
            {
                if (p3 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox3.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p3 = 2;
                    }

                    else
                    {
                        pictureBox3.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p3 = 1;
                    }
                }
                else if (p5 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox5.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p5 = 2;
                    }

                    else
                    {
                        pictureBox5.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p5 = 1;
                    }
                }

                 else if (p1 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox1.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p1 = 2;
                    }

                    else
                    {
                        pictureBox1.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p1 = 1;
                    }
                }

                else if (p4 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox4.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p4 = 2;
                    }

                    else
                    {
                        pictureBox4.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p4 = 1;
                    }
                }
                else if (p8 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox8.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p8 = 2;
                    }

                    else
                    {
                        pictureBox8.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p8 = 1;
                    }
                }
                else if (p9 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox9.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p9 = 2;
                    }

                    else
                    {
                        pictureBox9.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p9 = 1;
                    }
                }
            }
            if (masukan == 8)
            {
                if (p2 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox2.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p2 = 2;
                    }

                    else
                    {
                        pictureBox2.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p2 = 1;
                    }
                }
                else if (p5 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox5.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p5 = 2;
                    }

                    else
                    {
                        pictureBox5.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p5 = 1;
                    }
                }
                else if (p7 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox7.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p7 = 2;
                    }

                    else
                    {
                        pictureBox7.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p7 = 1;
                    }
                }
                else if (p9 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox9.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p9 = 2;
                    }

                    else
                    {
                        pictureBox9.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p9 = 1;
                    }
                }
            }
            if (masukan == 9)
            {
                if (p1 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox1.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p1 = 2;
                    }

                    else
                    {
                        pictureBox1.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p1 = 1;
                    }
                }

                else if (p3 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox3.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p3 = 2;
                    }

                    else
                    {
                        pictureBox3.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p3 = 1;
                    }
                }

                else if (p6 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox6.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p6 = 2;
                    }

                    else
                    {
                        pictureBox6.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p6 = 1;
                    }
                }

                else if (p7 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox7.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p7 = 2;
                    }

                    else
                    {
                        pictureBox7.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p7 = 1;
                    }
                }



                else if (p8 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox8.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p8 = 2;
                    }

                    else
                    {
                        pictureBox8.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p8 = 1;
                    }
                }

                else if (p5 == 0)
                {
                    if (play == 1)
                    {
                        pictureBox5.BackgroundImage = Game_TicTacToe.Resource1.x;
                        p5 = 2;
                    }

                    else
                    {
                        pictureBox5.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                        p5 = 1;
                    }
                }
            }
        }
       
// ini program untuk menentukan pilihan x atau o  masing-masing pictureBox

        private void pictureBox1_Click(object sender, EventArgs e)
        {
            if (play == 0)
            {
                MessageBox.Show("Silahkan Masukkan Pilihan anda"); // indikator jika pemain mengklik pictureBox jika belum memilih
            }

            else if (play > 0 && p1 == 0)
            {
                if (play % 2 == 0)
                {
                    pictureBox1.BackgroundImage = Game_TicTacToe.Resource1.x;
                    p1 = 2;
                }

                else
                {
                    pictureBox1.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                    p1 = 1;
                }
                //com();
                input = 1;
                com_expert(1);
            }

            menang();
        }

        private void pictureBox2_Click(object sender, EventArgs e)
        {

            if (play == 0)
            {
                MessageBox.Show("Silahkan Masukkan Pilihan anda");
            }

            else if (play > 0 && p2 == 0)
            {
                if (play % 2 == 0)
                {
                    pictureBox2.BackgroundImage = Game_TicTacToe.Resource1.x;
                    p2 = 2;
                }

                else
                {
                    pictureBox2.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                    p2 = 1;
                }
                //com();
                input = 2;
                com_expert(2);
            }

            menang();
            
        }

        private void pictureBox3_Click(object sender, EventArgs e)
        {

            if (play == 0)
            {
                MessageBox.Show("Silahkan Masukkan Pilihan anda");
            }
            else if (play > 0 && p3 == 0)
            {
                if (play % 2 == 0)
                {
                    pictureBox3.BackgroundImage = Game_TicTacToe.Resource1.x;
                    p3 = 2;
                }

                else
                {
                    pictureBox3.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                    p3 = 1;
                }
               
                //com();
                input = 3;
                com_expert(3);
            }
            menang();
           
        }

        private void pictureBox4_Click(object sender, EventArgs e)
        {

            if (play == 0)
            {
                MessageBox.Show("Silahkan Masukkan Pilihan anda");
            }

            else if (play > 0 && p4 == 0)
            {
                if (play % 2 == 0)
                {
                    pictureBox4.BackgroundImage = Game_TicTacToe.Resource1.x;
                    p4 = 2;
                }

                else
                {
                    pictureBox4.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                    p4 = 1;
                }

                //com();
                input = 4;
                com_expert(4);
            }

            menang();
            
        }

        private void pictureBox5_Click(object sender, EventArgs e)
        {

            if (play == 0)
            {
                MessageBox.Show("Silahkan Masukkan Pilihan anda");
            }
            else if (play > 0 && p5 == 0)
            {
                if (play % 2 == 0)
                {
                    pictureBox5.BackgroundImage = Game_TicTacToe.Resource1.x;
                    p5 = 2;
                }

                else
                {
                    pictureBox5.BackgroundImage = Game_TicTacToe.Resource1.Oo1;

                    p5 = 1;
                }

                input = 5;
                com_expert(5);
                //com();

            }
            menang();
           

        }

        private void pictureBox6_Click(object sender, EventArgs e)
        {

            if (play == 0)
            {
                MessageBox.Show("Silahkan Masukkan Pilihan anda");
            }

            else if (play > 0 && p6 == 0)
            {
                if (play % 2 == 0)
                {
                    pictureBox6.BackgroundImage = Game_TicTacToe.Resource1.x;

                    p6 = 1;
                }

                else
                {
                    pictureBox6.BackgroundImage = Game_TicTacToe.Resource1.Oo1;

                    p6 = 1;
                }

                //com();
                input = 6;
                com_expert(6);

            }
            menang();
           
        }

        private void pictureBox7_Click(object sender, EventArgs e)
        {

            if (play == 0)
            {
                MessageBox.Show("Silahkan Masukkan Pilihan anda");
            }

            else if (play > 0 && p7 == 0)
            {
                if (play % 2 == 0)
                {
                    pictureBox7.BackgroundImage = Game_TicTacToe.Resource1.x;

                    p7 = 2;
                }

                else
                {
                    pictureBox7.BackgroundImage = Game_TicTacToe.Resource1.Oo1;

                    p7 = 1;
                }

                //com();
                input = 7;
                com_expert(7);

            }
            menang();
           
        }

        private void pictureBox8_Click(object sender, EventArgs e)
        {

            if (play == 0)
            {
                MessageBox.Show("Silahkan Masukkan Pilihan anda");
            }

            else if (play > 0 && p8 == 0)
            {
                if (play % 2 == 0)
                {
                    pictureBox8.BackgroundImage = Game_TicTacToe.Resource1.x;

                    p8 = 2;
                }

                else
                {
                    pictureBox8.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                    p8 = 1;
                }

                //com();
                input = 8;
                com_expert(8);
            }
            menang();           
        }

        private void pictureBox9_Click(object sender, EventArgs e)
        {

            if (play == 0)
            {
                MessageBox.Show("Silahkan Masukkan Pilihan anda");
            }

            else if (play > 0 && p9 == 0)
            {
                if (play % 2 == 0)
                {
                    pictureBox9.BackgroundImage = Game_TicTacToe.Resource1.x;
                    p9 = 2;
                }

                else
                {
                    pictureBox9.BackgroundImage = Game_TicTacToe.Resource1.Oo1;
                    p9 = 1;
                }

                //com();
                input = 9;
                com_expert(9);
            }
            menang();
           
        }

//indikator yang memberikan informasi pemain sebagai apa, x atau o
// ini jika pemain adalah o
        private void oo_Click(object sender, EventArgs e)
        {
            if (play == 0)
            {
                play = 1;
            }
            textBox2.Text = " ANDA O dan KOMPUTER X";
        }

//ini adalah jika pemain x
        private void xx_Click(object sender, EventArgs e)
        {
            if (play == 0)
            {
                play = 2;
            }
            textBox2.Text = " ANDA X dan KOMPUTER O";
        }

//untuk menghapus semua objek yang aada
        private void button1_Click(object sender, EventArgs e)
        {
            pictureBox1.BackgroundImage = null;
            pictureBox2.BackgroundImage = null;
            pictureBox3.BackgroundImage = null;
            pictureBox4.BackgroundImage = null;
            pictureBox5.BackgroundImage = null;
            pictureBox6.BackgroundImage = null;
            pictureBox7.BackgroundImage = null;
            pictureBox8.BackgroundImage = null;
            pictureBox9.BackgroundImage = null;
            p1 = p2 = p3 = p4 = p5 = p6 = p7 = p8 = p9 = 0;
            textBox2.Text = "";
            label1.Text = "";
            play = 0;
        }

// ini untuk menentukan kondisi menang
        void menang()
        {
            //1 ,2 ,3
            if (p1 == 2 && p2 == 2 && p3 == 2)
            {
                label1.Text = "TIM X MENANG COY";
            }
            else if (p1 == 1 && p2 == 1 && p3 == 1)
            {
                label1.Text = "TIM O MENANG COY";
            }
            //4, 5, 6

            else if (p4 == 2 && p5 == 2 && p6 == 2)
            {
                label1.Text = "TIM X MENANG COY";
            }
            else if (p4 == 1 && p5 == 1 && p6 == 1)
            {
                label1.Text = "TIM O MENANG COY";
            }
            //win 7 , 8 , 9

            else if (p7 == 2 && p8 == 2 && p9 == 2)
            {
                label1.Text = "TIM X MENANG COY";
            }
            else if (p7 == 1 && p8 == 1 && p9 == 1)
            {
                label1.Text = "TIM O MENANG COY";
            }
            //1, 4 ,7
            else if (p1 == 2 && p4 == 2 && p7 == 2)
            {
                label1.Text = "TIM X MENANG COY";
            }
            else if (p1 == 1 && p4 == 1 && p7 == 1)
            {
                label1.Text = "TIM O MENANG COY";
            }
            //2, 5, 8
            else if (p2 == 2 && p5 == 2 && p8 == 2)
            {
                label1.Text = "TIM X MENANG COY";
            }
            else if (p2 == 1 && p5 == 1 && p8 == 1)
            {
                label1.Text = "TIM O MENANG COY";
            }
            //3, 6 , 9
            else if (p3 == 2 && p6 == 2 && p9 == 2)
            {
                label1.Text = "TIM X MENANG COY";
            }
            else if (p3 == 1 && p6 == 1 && p9 == 1)
            {
                label1.Text = "TIM O MENANG COY";
            }

            //diagonal
            //1, 5 , 9
            else if (p1 == 2 && p5 == 2 && p9 == 2)
            {
                label1.Text = "TIM X MENANG COY";
            }
            else if (p1 == 1 && p5 == 1 && p9 == 1)
            {
                label1.Text = "TIM O MENANG COY";
            }
            //3, 5 , 7
            else if (p3 == 2 && p5 == 2 && p7 == 2)
            {
                label1.Text = "TIM X MENANG COY";
            }
            else if (p3 == 1 && p5 == 1 && p7 == 1)
            {
                label1.Text = "TIM O MENANG COY";
            }
        }

   
    }
}

Ini adalah hasil dari program ini







untuk informasi lebih jelas lagi, silahkan klik icon dibawah dan download videonya di :