Since the ball is not connected to anything, there is no practical way to detect that it has touched a line. If, however, you mad the line out of multiple parallel lines with alternate ones connected together, and the ball touched two adjacent lines, then you could detect that the circuit had closed between the two set of lines.
Something like this:
Code:
|--------------------------------------------------------------------------------
| --------------------------------------------------------------------------------|
|-------------------------------------------------------------------------------- |
| -------------------------------------------------------------------------------|
|------------------------------------------------------------------------------- |
| --------------------------------------------------------------------------------|
| |
A B
Continuity between A and B would indicate the ball hit the line.
Of course a player might cheat by wearing shoes with conductive sole and stepping on the line to signal an out-of-bound of the opponent's shot.
Bob