Ruby Quiz - (Crypto) Blockchain Contract Edition - Challenge #1 - Create a 3x3 Tic-Tac-Toe Player vs Player Game Contract

Gerald Bauer <[email protected]>
Newsgroups gmane.comp.lang.ruby.general
Message-ID <CAAxEZd_puyZmOkw4G=KOXKxsGF1i09ei3+BiLrAor7VtOv1x+g@mail.gmail.com>
Hello,

  I've started a new ruby quiz for secure (crypto) contract blockchain
scripting [1].

  Challenge #1 - Create a 3x3 Tic-Tac-Toe Player vs Player Game Contract

Let's use the "Creating a Tic-Tac-Toe Smart Contract" [2] tutorial
and "real-world" sample contract from the EOS.IO blockchain.

  The challenge: Code a contract for a 3x3 tic-tac-toe player vs player game
using sruby :-).

  Can you do better (than the EOS.IO C++ "monster")?

  Post your code snippets (or questions or comments) on the "official"
Ruby Quiz Channel,
  that is, right here on the ruby-talk mailing list.

  Cheers. Prost.

PS: New to New to (Secure) Ruby Programming?

See the "Red Paper" about sruby [3] - Small, Smart, Secure, Safe,
Solid & Sound (S6) Ruby - The Ruby Programming Language for Contract /
Transaction Scripts on the Blockchain World Computer - Yes, It's Just
Ruby

PPS: A Hello, World - Greeter Contract sample:

```
############################
# Greeter Contract

def initialize( greeting )
  @owner    = msg.sender
  @greeting = greeting
end

def greet
  @greeting
end

def kill
  selfdestruct( msg.sender )  if msg.sender == @owner
end
```

[1] https://github.com/s6ruby/quiz
[2] https://developers.eos.io/eosio-cpp/v1.3.1/docs/tic-tac-toe-tutorial
[3] https://github.com/s6ruby/redpaper

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.