-1

Do you know any way/algorithm to rotate a piece in Tetris? The programming language is Jess...

Thank you for any helpful suggestion.

pieces

  • 1
    If you don't know the algorithm you cannot write a program for it, no matter which programming language. – laune Apr 04 '17 at 16:46

2 Answers2

0

I don't know how to do it in Jess, but on one of the original Tetris' (C64 version, mostly written in compiled basic), the rotations were stored separately, as there wasn't the computing power to work out what the rotations would be, dynamically.

Neil
  • 11,059
  • 3
  • 31
  • 56
0

The best way to write Jess code to work with Tetris pieces, would be to write a Java library of objects to represent the Tetris pieces, including operations like rotation, and then manipulate those objects from Jess. Use each language for the things it does best.

Ernest Friedman-Hill
  • 80,601
  • 10
  • 150
  • 186